From a6fdb8b8e6b32972c8808168f4b7c32412c2eeb8 Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 16 Nov 2012 02:10:26 +0000 Subject: [PATCH] SAFE_FREE sets key_st to NULL, so use that explicitly. --- lib/libresolv/dst_api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libresolv/dst_api.c b/lib/libresolv/dst_api.c index 6a819551388b..a72d0e188625 100644 --- a/lib/libresolv/dst_api.c +++ b/lib/libresolv/dst_api.c @@ -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. @@ -40,7 +40,7 @@ #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 "; #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 @@ -691,7 +691,7 @@ dst_dnskey_to_key(const char *in_name, const u_char *rdata, const int len) alg)); SAFE_FREE(key_st); - return (key_st); + return (NULL); } /*%