From 8ad80bb0aebfe8818d37147a2a1d5ebe7430793d Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 13 Apr 2009 17:16:35 +0000 Subject: [PATCH] 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 --- src/lib/krb5/os/dnsglue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.26.2