In krb5_pac_get_buffer, check the correct value for null after calling
authorGreg Hudson <ghudson@mit.edu>
Fri, 23 Jan 2009 19:01:56 +0000 (19:01 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 23 Jan 2009 19:01:56 +0000 (19:01 +0000)
malloc.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21789 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/pac.c

index fb5f597a60ff22addaa1d2814ae24b37515345c2..196b627d8b0627944696ce9f2f237e6a9a7f4138 100644 (file)
@@ -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;