Source-Changes-HG archive

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

[src/trunk]: src/crypto/external/bsd/libsaslc/dist/src Fixed potential NULL p...



details:   https://anonhg.NetBSD.org/src/rev/219127efb547
branches:  trunk
changeset: 829420:219127efb547
user:      shm <shm%NetBSD.org@localhost>
date:      Tue Jan 30 13:11:28 2018 +0000

description:
Fixed potential NULL pointer dereference (CID: 978477)

diffstat:

 crypto/external/bsd/libsaslc/dist/src/mech_digestmd5.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 43fbacaefb95 -r 219127efb547 crypto/external/bsd/libsaslc/dist/src/mech_digestmd5.c
--- a/crypto/external/bsd/libsaslc/dist/src/mech_digestmd5.c    Tue Jan 30 11:03:06 2018 +0000
+++ b/crypto/external/bsd/libsaslc/dist/src/mech_digestmd5.c    Tue Jan 30 13:11:28 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mech_digestmd5.c,v 1.11 2013/06/28 15:04:35 joerg Exp $ */
+/* $NetBSD: mech_digestmd5.c,v 1.12 2018/01/30 13:11:28 shm Exp $ */
 
 /* Copyright (c) 2010 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -35,7 +35,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: mech_digestmd5.c,v 1.11 2013/06/28 15:04:35 joerg Exp $");
+__RCSID("$NetBSD: mech_digestmd5.c,v 1.12 2018/01/30 13:11:28 shm Exp $");
 
 #include <sys/param.h>
 
@@ -2294,7 +2294,7 @@
                }
                *out = saslc__mech_digestmd5_reply(sess, response);
                free(response);
-               if (out == NULL)
+               if (*out == NULL)
                        return MECH_ERROR;
 
                *outlen = strlen(*out);



Home | Main Index | Thread Index | Old Index