SAFE_FREE sets key_st to NULL, so use that explicitly.

This commit is contained in:
joerg 2012-11-16 02:10:26 +00:00
parent 54f191bfce
commit a6fdb8b8e6

View File

@ -1,4 +1,4 @@
/* $NetBSD: dst_api.c,v 1.1 2012/11/15 18:48:48 christos Exp $ */ /* $NetBSD: dst_api.c,v 1.2 2012/11/16 02:10:26 joerg Exp $ */
/* /*
* Portions Copyright (c) 1995-1998 by Trusted Information Systems, Inc. * Portions Copyright (c) 1995-1998 by Trusted Information Systems, Inc.
@ -40,7 +40,7 @@
#if 0 #if 0
static const char rcsid[] = "Header: /proj/cvs/prod/libbind/dst/dst_api.c,v 1.17 2007/09/24 17:18:25 each Exp "; static const char rcsid[] = "Header: /proj/cvs/prod/libbind/dst/dst_api.c,v 1.17 2007/09/24 17:18:25 each Exp ";
#else #else
__RCSID("$NetBSD: dst_api.c,v 1.1 2012/11/15 18:48:48 christos Exp $"); __RCSID("$NetBSD: dst_api.c,v 1.2 2012/11/16 02:10:26 joerg Exp $");
#endif #endif
@ -691,7 +691,7 @@ dst_dnskey_to_key(const char *in_name, const u_char *rdata, const int len)
alg)); alg));
SAFE_FREE(key_st); SAFE_FREE(key_st);
return (key_st); return (NULL);
} }
/*% /*%