Skip to content

Commit

Permalink
this needs to be zeroed, or else conf_print_rtm can print garbage. un…
Browse files Browse the repository at this point in the history
…initialized, duh!
  • Loading branch information
yellowman committed May 4, 2021
1 parent ca1d09d commit cd87e48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions conf.c
Expand Up @@ -1361,6 +1361,7 @@ conf_print_rtm(FILE *output, struct rt_msghdr *rtm, char *delim, int af)
struct sockaddr_in sin;

sin.sin_addr.s_addr = htonl(INADDR_BROADCAST);
bzero(&flags, TMPSIZ);

cp = ((char *)rtm + rtm->rtm_hdrlen);
for (i = 1; i; i <<= 1)
Expand Down

0 comments on commit cd87e48

Please sign in to comment.