patch-src_aircrack-ng_c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- aircrack-ng-1.0-rc3.orig/src/aircrack-ng.c 2009-03-26 22:01:02.000000000 +0100
  3. +++ aircrack-ng-1.0-rc3/src/aircrack-ng.c 2009-05-01 15:53:30.000000000 +0200
  4. @@ -245,7 +245,7 @@ void clean_exit(int ret)
  5. int child_pid;
  6. char tmpbuf[128];
  7. - bzero(tmpbuf, 128);
  8. + memset(tmpbuf, 0, 128);
  9. if(ret && !opt.is_quiet)
  10. {
  11. @@ -738,7 +738,7 @@ void read_thread( void *arg )
  12. memset( &rb, 0, sizeof( rb ) );
  13. ap_cur = NULL;
  14. - bzero(&pfh, sizeof(struct pcap_file_header));
  15. + memset(&pfh, 0, sizeof(struct pcap_file_header));
  16. if( ( buffer = (uchar *) malloc( 65536 ) ) == NULL )
  17. {
  18. @@ -1401,8 +1401,8 @@ void read_thread( void *arg )
  19. dlen -=6;
  20. }
  21. - bzero(weight, sizeof(weight));
  22. - bzero(clear, sizeof(clear));
  23. + memset(weight, 0, sizeof(weight));
  24. + memset(clear, 0, sizeof(clear));
  25. /* calculate keystream */
  26. k = known_clear(clear, &clearsize, weight, h80211, dlen);
  27. @@ -4525,7 +4525,7 @@ int main( int argc, char *argv[] )
  28. /*
  29. all_ivs = malloc( (256*256*256) * sizeof(used_iv));
  30. - bzero(all_ivs, (256*256*256)*sizeof(used_iv));
  31. + memset(all_ivs, 0, (256*256*256)*sizeof(used_iv));
  32. */
  33. forceptw = 0;