Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37594776
en ru br
ALT Linux repos
S:0.1-alt2
5.0: 0.1-alt1
4.1: 0.1-alt1
4.0: 0.1-alt1

Group :: Networking/Other
RPM: ltspinfod

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: ltspinfod-0.1-alt-fixes.patch
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");
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin