diff options
Diffstat (limited to 'lib/ZParseNot.c')
-rw-r--r-- | lib/ZParseNot.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ZParseNot.c b/lib/ZParseNot.c index 72a7587..48fc29e 100644 --- a/lib/ZParseNot.c +++ b/lib/ZParseNot.c @@ -117,6 +117,9 @@ ZParseNotice(char *buffer, BAD_PACKET; notice->z_time.tv_sec = ntohl((u_long) notice->z_uid.tv.tv_sec); notice->z_time.tv_usec = ntohl((u_long) notice->z_uid.tv.tv_usec); + memset(¬ice->z_sender_sockaddr, 0, sizeof notice->z_sender_sockaddr); + notice->z_sender_sockaddr.ip4.sin_family = AF_INET; + notice->z_sender_sockaddr.ip4.sin_addr = notice->z_uid.zuid_addr; numfields--; ptr = next_field(ptr, end); } |