summaryrefslogtreecommitdiff
path: root/src/or/policies.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-09-05 20:53:39 +0000
committerNick Mathewson <nickm@torproject.org>2008-09-05 20:53:39 +0000
commitd5b2dab31ddf5f58179a82e56879a9d6e8d01021 (patch)
treeed938ddaf08903f825ece3eecc7f70041e0ef863 /src/or/policies.c
parent0b8117a5c002b262b6ee56acc3719700637416c7 (diff)
downloadtor-d5b2dab31ddf5f58179a82e56879a9d6e8d01021.tar.gz
tor-d5b2dab31ddf5f58179a82e56879a9d6e8d01021.zip
Fix a malloc that should have been a tor_malloc
svn:r16780
Diffstat (limited to 'src/or/policies.c')
-rw-r--r--src/or/policies.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/policies.c b/src/or/policies.c
index 5afe3186b1..8af322440e 100644
--- a/src/or/policies.c
+++ b/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: