svn rev #22197: trunk/src/lib/krb5/os/
ghudson@MIT.EDU
ghudson at MIT.EDU
Mon Apr 13 13:16:35 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22197
Commit By: ghudson
Log Message:
In krb5int_dns_init, fix a malloc-returning-null check which could let
a null result slip past.
Changed Files:
U trunk/src/lib/krb5/os/dnsglue.c
Modified: trunk/src/lib/krb5/os/dnsglue.c
===================================================================
--- trunk/src/lib/krb5/os/dnsglue.c 2009-04-12 15:40:41 UTC (rev 22196)
+++ trunk/src/lib/krb5/os/dnsglue.c 2009-04-13 17:16:35 UTC (rev 22197)
@@ -112,7 +112,7 @@
p = (ds->ansp == NULL)
? malloc(nextincr) : realloc(ds->ansp, nextincr);
- if (p == NULL && ds->ansp != NULL) {
+ if (p == NULL) {
ret = -1;
goto errout;
}
More information about the cvs-krb5
mailing list