Explorar el Código

Fix a malloc that should have been a tor_malloc

svn:r16780
Nick Mathewson hace 15 años
padre
commit
d5b2dab31d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/or/policies.c

+ 1 - 1
src/or/policies.c

@@ -1175,7 +1175,7 @@ policy_summarize(smartlist_t *policy)
 
   final_size = strlen(prefix)+1+shorter_len+1;
   tor_assert(final_size <= MAX_EXITPOLICY_SUMMARY_LEN+1);
-  result = malloc(final_size);
+  result = tor_malloc(final_size);
   tor_snprintf(result, final_size, "%s %s", prefix, shorter_str);
 
 cleanup: