pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/cyrus-sasl2/patches Fix uninitialized variabl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/abaeadc8eddd
branches:  trunk
changeset: 462631:abaeadc8eddd
user:      christos <christos%pkgsrc.org@localhost>
date:      Mon Oct 06 16:31:07 2003 +0000

description:
Fix uninitialized variable that caused core-dumps.

diffstat:

 security/cyrus-sasl2/patches/patch-af |  16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 52a5871c8a1b -r abaeadc8eddd security/cyrus-sasl2/patches/patch-af
--- a/security/cyrus-sasl2/patches/patch-af     Mon Oct 06 16:18:21 2003 +0000
+++ b/security/cyrus-sasl2/patches/patch-af     Mon Oct 06 16:31:07 2003 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-af,v 1.2 2003/05/26 06:53:09 martti Exp $
+$NetBSD: patch-af,v 1.3 2003/10/06 16:31:07 christos Exp $
 
---- plugins/cram.c.orig        2003-02-18 20:27:37.000000000 +0200
-+++ plugins/cram.c     2003-05-21 09:11:53.000000000 +0300
+--- plugins/cram.c.orig        2003-02-18 13:27:37.000000000 -0500
++++ plugins/cram.c     2003-10-06 12:09:33.000000000 -0400
 @@ -230,7 +230,7 @@
      HMAC_MD5_STATE md5state;
      int clear_md5state = 0;
@@ -11,3 +11,13 @@
      
      /* extract userid; everything before last space */
      pos = clientinlen-1;
+@@ -544,7 +544,8 @@
+       
+       if ((auth_result != SASL_OK) && (auth_result != SASL_INTERACT))
+           return auth_result;
+-    }
++    } else
++      authid = oparams->authid;
+     
+     /* try to get the password */
+     if (password == NULL) {



Home | Main Index | Thread Index | Old Index