patch-src_ipfrag_c 551 B

123456789101112
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- iptraf-3.0.0.orig/src/ipfrag.c 2005-09-13 08:42:54.000000000 +0200
  3. +++ iptraf-3.0.0/src/ipfrag.c 2009-05-21 23:04:36.000000000 +0200
  4. @@ -51,7 +51,7 @@ struct fragent *addnewdgram(struct iphdr
  5. fragtail->next_entry = ptmp;
  6. ptmp->prev_entry = fragtail;
  7. }
  8. - bzero(ptmp, sizeof(struct fragent));
  9. + memset(ptmp, 0, sizeof(struct fragent));
  10. ptmp->fragdesclist = malloc(sizeof(struct fragdescent));
  11. ptmp->fragdesclist->min = 0;
  12. ptmp->fragdesclist->max = 65535;