Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109380835
D39233.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
525 B
Referenced Files
None
Subscribers
None
D39233.diff
View Options
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -1156,6 +1156,7 @@
struct ip oip;
u_char oip_header_len;
struct icmp oicmp;
+ const u_char *oicmp_raw;
/*
* Get size of IP header of the received packet.
@@ -1359,6 +1360,8 @@
}
memcpy(&oip, icmp_data_raw, sizeof(struct ip));
+ oicmp_raw = icmp_data_raw + oip_header_len;
+ memcpy(&oicmp, oicmp_raw, sizeof(struct icmp));
if (((options & F_VERBOSE) && uid == 0) ||
(!(options & F_QUIET2) &&
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 5, 7:53 AM (20 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16470307
Default Alt Text
D39233.diff (525 B)
Attached To
Mode
D39233: ping: Fix an uninitialized variable
Attached
Detach File
Event Timeline
Log In to Comment