From 487d109cdcc9718eb63975ce8055c5f00a5a4d5a Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Fri, 23 Jan 2009 19:01:56 +0000 Subject: [PATCH] In krb5_pac_get_buffer, check the correct value for null after calling malloc. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21789 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/pac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/pac.c b/src/lib/krb5/krb/pac.c index fb5f597a6..196b627d8 100644 --- a/src/lib/krb5/krb/pac.c +++ b/src/lib/krb5/krb/pac.c @@ -230,7 +230,7 @@ krb5_pac_get_buffer(krb5_context context, return ret; data->data = malloc(d.length); - if (data == NULL) + if (data->data == NULL) return ENOMEM; data->length = d.length; -- 2.26.2