commit | bcf4908e714644add18fad1614e8b0dea071960d | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Sat Sep 02 17:53:16 2006 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Sat Sep 02 17:53:16 2006 +0000 |
tree | 83aa66bd5faa69e2eba3391d82018032205ff51b | |
parent | e0b7f71d26d224bd8304d9dfcac3fe9b9d862cd2 [diff] [blame] |
ping: bind -> xbind
diff --git a/networking/ping.c b/networking/ping.c index 4269eaa..a81472f 100644 --- a/networking/ping.c +++ b/networking/ping.c
@@ -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));