From: Greg Hudson Date: Mon, 13 Apr 2009 17:16:35 +0000 (+0000) Subject: In krb5int_dns_init, fix a malloc-returning-null check which could let X-Git-Tag: krb5-1.8-alpha1~544 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8ad80bb0aebfe8818d37147a2a1d5ebe7430793d;p=krb5.git In krb5int_dns_init, fix a malloc-returning-null check which could let a null result slip past. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22197 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/dnsglue.c b/src/lib/krb5/os/dnsglue.c index 7a6583ca0..55e1cd912 100644 --- a/src/lib/krb5/os/dnsglue.c +++ b/src/lib/krb5/os/dnsglue.c @@ -112,7 +112,7 @@ krb5int_dns_init(struct krb5int_dns_state **dsp, p = (ds->ansp == NULL) ? malloc(nextincr) : realloc(ds->ansp, nextincr); - if (p == NULL && ds->ansp != NULL) { + if (p == NULL) { ret = -1; goto errout; }