Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libresolv SAFE_FREE sets key_st to NULL, so use that exp...



details:   https://anonhg.NetBSD.org/src/rev/52d007b3574f
branches:  trunk
changeset: 782710:52d007b3574f
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Nov 16 02:10:26 2012 +0000

description:
SAFE_FREE sets key_st to NULL, so use that explicitly.

diffstat:

 lib/libresolv/dst_api.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 80b505633a68 -r 52d007b3574f lib/libresolv/dst_api.c
--- a/lib/libresolv/dst_api.c   Thu Nov 15 23:51:53 2012 +0000
+++ b/lib/libresolv/dst_api.c   Fri Nov 16 02:10:26 2012 +0000
@@ -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 @@
                         alg));
 
        SAFE_FREE(key_st);
-       return (key_st);
+       return (NULL);
 }
 
 /*%



Home | Main Index | Thread Index | Old Index