Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
libimobiledevice.2701
libimobiledevice-CVE-2016-5104.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libimobiledevice-CVE-2016-5104.patch of Package libimobiledevice.2701
From df1f5c4d70d0c19ad40072f5246ca457e7f9849e Mon Sep 17 00:00:00 2001 From: Joshua Hill <posixninja@gmail.com> Date: Tue, 29 Dec 2015 22:27:17 +0100 Subject: [PATCH] common: [security fix] Make sure sockets only listen locally Backported by Mike Gorse <mgorse@suse.com> --- tools/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/socket.c b/tools/socket.c index b276864..e2968a6 100644 --- a/tools/socket.c +++ b/tools/socket.c @@ -172,7 +172,7 @@ int socket_create(uint16_t port) memset((void *) &saddr, 0, sizeof(saddr)); saddr.sin_family = AF_INET; - saddr.sin_addr.s_addr = htonl(INADDR_ANY); + saddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); saddr.sin_port = htons(port); if (0 > bind(sfd, (struct sockaddr *) &saddr, sizeof(saddr))) { @@ -329,7 +329,7 @@ int socket_accept(int fd, uint16_t port) memset(&addr, 0, sizeof(addr)); addr.sin_family = AF_INET; - addr.sin_addr.s_addr = htonl(INADDR_ANY); + addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); addr.sin_port = htons(port); addr_len = sizeof(addr);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor