svn commit: trunk/busybox/networking

vda at busybox.net vda at busybox.net
Sat Sep 2 17:53:17 UTC 2006


Author: vda
Date: 2006-09-02 10:53:16 -0700 (Sat, 02 Sep 2006)
New Revision: 16031

Log:
ping: bind -> xbind


Modified:
   trunk/busybox/networking/ping.c


Changeset:
Modified: trunk/busybox/networking/ping.c
===================================================================
--- trunk/busybox/networking/ping.c	2006-09-02 16:57:59 UTC (rev 16030)
+++ trunk/busybox/networking/ping.c	2006-09-02 17:53:16 UTC (rev 16031)
@@ -330,8 +330,7 @@
 	pingsock = create_icmp_socket();
 
 	if (sourceaddr.sin_addr.s_addr) {
-		if (bind(pingsock, (struct sockaddr*)&sourceaddr, sizeof(sourceaddr)) == -1)
-			bb_error_msg_and_die("could not bind to address");
+		xbind(pingsock, (struct sockaddr*)&sourceaddr, sizeof(sourceaddr));
 	}
 
 	memset(&pingaddr, 0, sizeof(struct sockaddr_in));




More information about the busybox-cvs mailing list