Group :: Networking/Other
RPM: ltspinfod
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: ltspinfod-0.1-alt-fixes.patch
Download
Download
diff -Naur ltspinfod-0.1-orig/ltspinfod.c ltspinfod-0.1/ltspinfod.c
--- ltspinfod-0.1-orig/ltspinfod.c 2003-11-03 01:06:23.000000000 +0200
+++ ltspinfod-0.1/ltspinfod.c 2012-03-06 17:15:15.549465655 +0200
@@ -388,9 +388,10 @@
exit(1);
}
+ memset(&netaddr, 0, sizeof(netaddr));
+ netaddr.sin_family = AF_INET;
netaddr.sin_port = htons(nPort);
netaddr.sin_addr.s_addr = htonl(INADDR_ANY);
- memset(netaddr.sin_zero, 0, sizeof(netaddr.sin_zero));
if( bind( netfd, (struct sockaddr *)&netaddr, sizeof(netaddr) ) < 0 ){
syslog(LOGOPTS, "bind: %m\n");