svn rev #21789: trunk/src/lib/krb5/krb/

ghudson@MIT.EDU ghudson at MIT.EDU
Fri Jan 23 14:01:59 EST 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=21789
Commit By: ghudson
Log Message:
In krb5_pac_get_buffer, check the correct value for null after calling
malloc.



Changed Files:
U   trunk/src/lib/krb5/krb/pac.c
Modified: trunk/src/lib/krb5/krb/pac.c
===================================================================
--- trunk/src/lib/krb5/krb/pac.c	2009-01-23 18:41:39 UTC (rev 21788)
+++ trunk/src/lib/krb5/krb/pac.c	2009-01-23 19:01:56 UTC (rev 21789)
@@ -230,7 +230,7 @@
 	return ret;
  
     data->data = malloc(d.length);
-    if (data == NULL)
+    if (data->data == NULL)
 	return ENOMEM;
 
     data->length = d.length;




More information about the cvs-krb5 mailing list