1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
- --- iptraf-3.0.1.orig/src/tcptable.c 2005-09-13 08:42:54.000000000 +0200
- +++ iptraf-3.0.1/src/tcptable.c 2013-03-04 11:38:22.000000000 +0100
- @@ -17,6 +17,7 @@ details.
-
- ***/
-
- +#include <stdlib.h>
- #include <winops.h>
- #include "options.h"
- #include "tcptable.h"
- @@ -143,7 +144,7 @@ int add_tcp_hash_entry(struct tcptable *
- entry->daddr.s_addr, entry->dport, entry->ifname);
-
- ptmp = malloc(sizeof(struct tcp_hashentry));
- - bzero(ptmp, sizeof(struct tcp_hashentry));
- + memset(ptmp, 0, sizeof(struct tcp_hashentry));
-
- if (ptmp == NULL)
- return 1;
- @@ -337,8 +338,8 @@ struct tcptableent *addentry(struct tcpt
- * Zero out MAC address fields
- */
-
- - bzero(new_entry->smacaddr, 15);
- - bzero(new_entry->oth_connection->smacaddr, 15);
- + memset(new_entry->smacaddr, 0, 15);
- + memset(new_entry->oth_connection->smacaddr, 0, 15);
-
-
|