summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-25 20:42:09 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-25 20:42:09 (EST)
commitdf364b323b478922b8aedab497ee6e6659dbc5f4 (patch)
treec57b4868eb4d745a43b624ae92f4a5db3202a92e /libopkg
parent5e5ff16f03af9c8a19e5e0a5182c3db04bff778a (diff)
malloc -> xmalloc
git-svn-id: http://opkg.googlecode.com/svn/trunk@381 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/opkg_pathfinder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopkg/opkg_pathfinder.c b/libopkg/opkg_pathfinder.c
index 6198c04..f1bd940 100644
--- a/libopkg/opkg_pathfinder.c
+++ b/libopkg/opkg_pathfinder.c
@@ -37,9 +37,9 @@ static int pathfinder_verify_callback(X509_STORE_CTX *ctx, void *arg)
const char *hex = "0123456789ABCDEF";
size_t size = i2d_X509(ctx->cert, NULL);
unsigned char *keybuf, *iend;
- iend = keybuf = malloc(size);
+ iend = keybuf = xmalloc(size);
i2d_X509(ctx->cert, &iend);
- char *certdata_str = malloc(size * 2 + 1);
+ char *certdata_str = xmalloc(size * 2 + 1);
unsigned char *cp = keybuf;
char *certdata_str_i = certdata_str;
while (cp < iend)