[Pkg-privacy-commits] [libotr] 30/225: * src/auth.c (otrl_auth_handle_v1_key_exchange): Fix uninitialized variable received_pub.

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:44:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository libotr.

commit 575fee5e3438c869c63ca0e3673f96a786819349
Author: cypherpunk <cypherpunk>
Date:   Thu Feb 9 15:19:55 2006 +0000

    	* src/auth.c (otrl_auth_handle_v1_key_exchange): Fix
    	uninitialized variable received_pub.
---
 ChangeLog  | 5 +++++
 src/auth.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 1819f5f..f2a9c2a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-09
+
+	* src/auth.c (otrl_auth_handle_v1_key_exchange): Fix
+	uninitialized variable received_pub.
+
 2005-12-30
 
 	* src/message.c: Fix a typo, thanks to Anton Blanchard
diff --git a/src/auth.c b/src/auth.c
index 28f2928..56f053d 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -1188,7 +1188,7 @@ gcry_error_t otrl_auth_handle_v1_key_exchange(OtrlAuthInfo *auth,
     unsigned char *buf = NULL, *bufp = NULL;
     unsigned char *fingerprintstart, *fingerprintend;
     unsigned char fingerprintbuf[20], hashbuf[20];
-    gcry_mpi_t p, q, g, y, received_pub;
+    gcry_mpi_t p, q, g, y, received_pub = NULL;
     gcry_sexp_t pubs = NULL;
     size_t buflen, lenp;
     unsigned char received_reply;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/libotr.git



More information about the Pkg-privacy-commits mailing list