patch-main_astobj2_c 497 B

1234567891011
  1. --- asterisk-1.4.27.1.orig/main/astobj2.c 2009-10-06 03:16:36.000000000 +0200
  2. +++ asterisk-1.4.27.1/main/astobj2.c 2009-12-03 20:54:12.000000000 +0100
  3. @@ -236,7 +236,7 @@ int ao2_ref(void *user_data, const int d
  4. /* for safety, zero-out the astobj2 header and also the
  5. * first word of the user-data, which we make sure is always
  6. * allocated. */
  7. - bzero(obj, sizeof(struct astobj2 *) + sizeof(void *) );
  8. + memset(obj, 0, sizeof(struct astobj2 *) + sizeof(void *) );
  9. free(obj);
  10. }