diff options
Diffstat (limited to 'libbb/create_icmp_socket.c')
-rw-r--r-- | libbb/create_icmp_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/create_icmp_socket.c b/libbb/create_icmp_socket.c index 666454888..dbd4769f6 100644 --- a/libbb/create_icmp_socket.c +++ b/libbb/create_icmp_socket.c | |||
@@ -22,7 +22,7 @@ int create_icmp_socket(void) | |||
22 | * proto->p_proto to have the correct value for "icmp" */ | 22 | * proto->p_proto to have the correct value for "icmp" */ |
23 | sock = socket(AF_INET, SOCK_RAW, | 23 | sock = socket(AF_INET, SOCK_RAW, |
24 | (proto ? proto->p_proto : 1)); /* 1 == ICMP */ | 24 | (proto ? proto->p_proto : 1)); /* 1 == ICMP */ |
25 | if (sock < 0) { | 25 | if (sock < 0) { |
26 | if (errno == EPERM) | 26 | if (errno == EPERM) |
27 | bb_error_msg_and_die(bb_msg_perm_denied_are_you_root); | 27 | bb_error_msg_and_die(bb_msg_perm_denied_are_you_root); |
28 | bb_perror_msg_and_die(bb_msg_can_not_create_raw_socket); | 28 | bb_perror_msg_and_die(bb_msg_can_not_create_raw_socket); |