patch-src_airtun-ng_c 773 B

123456789101112131415161718192021
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- aircrack-ng-1.0-rc3.orig/src/airtun-ng.c 2009-03-26 22:01:02.000000000 +0100
  3. +++ aircrack-ng-1.0-rc3/src/airtun-ng.c 2009-05-01 15:52:04.000000000 +0200
  4. @@ -222,7 +222,7 @@ int addFrag(unsigned char* packet, unsig
  5. if(rFragment == NULL)
  6. return -1;
  7. - bzero(frame, 4096);
  8. + memset(frame, 0, 4096);
  9. memcpy(frame, packet, len);
  10. z = ( ( frame[1] & 3 ) != 3 ) ? 24 : 30;
  11. @@ -1029,7 +1029,7 @@ int main( int argc, char *argv[] )
  12. memset( &dev, 0, sizeof( dev ) );
  13. rFragment = (pFrag_t) malloc(sizeof(struct Fragment_list));
  14. - bzero(rFragment, sizeof(struct Fragment_list));
  15. + memset(rFragment, 0, sizeof(struct Fragment_list));
  16. opt.r_nbpps = 100;
  17. opt.tods = 0;