From 84888e9fa71952effe9e11ce17c8e38b23bd32d6 Mon Sep 17 00:00:00 2001 From: Pekka Pessi Date: Wed, 6 Oct 2010 18:01:39 +0300 Subject: [PATCH] gisi/verify: check g_try_new0 return value --- gisi/verify.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gisi/verify.c b/gisi/verify.c index fae9d13..322f1d1 100644 --- a/gisi/verify.c +++ b/gisi/verify.c @@ -116,6 +116,9 @@ GIsiRequest *g_isi_verify(GIsiClient *client, GIsiVerifyFunc func, struct verify_data *data = g_try_new0(struct verify_data, 1); GIsiRequest *req = NULL; + if (data == NULL) + return NULL; + data->func = func; data->data = opaque; -- 2.7.4