From f317fa98cf05470340f6b3cf9d0ec22034d4dd20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 11 Dec 2008 05:06:24 +0000 Subject: [PATCH] check the right variable for mallocation failure, cid#9 git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24139 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/pkinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/pkinit.c b/lib/krb5/pkinit.c index bb12a7170..dce9b26e6 100644 --- a/lib/krb5/pkinit.c +++ b/lib/krb5/pkinit.c @@ -1766,7 +1766,7 @@ _krb5_parse_moduli_line(krb5_context context, goto out; } m1->name = strdup(p1); - if (p1 == NULL) { + if (m1->name == NULL) { ret = ENOMEM; krb5_set_error_message(context, ret, N_("malloc: out of memeory", "")); goto out;