Source-Changes-HG archive

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

[src/trunk]: src/crypto/dist/ssh appease gcc -Wuninitialized



details:   https://anonhg.NetBSD.org/src/rev/7f9896aacc81
branches:  trunk
changeset: 581396:7f9896aacc81
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jun 01 12:07:00 2005 +0000

description:
appease gcc -Wuninitialized

diffstat:

 crypto/dist/ssh/hostfile.c |  6 +++---
 crypto/dist/ssh/kexdhc.c   |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r c7a05767d5b4 -r 7f9896aacc81 crypto/dist/ssh/hostfile.c
--- a/crypto/dist/ssh/hostfile.c        Wed Jun 01 12:05:28 2005 +0000
+++ b/crypto/dist/ssh/hostfile.c        Wed Jun 01 12:07:00 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hostfile.c,v 1.14 2005/04/24 13:31:01 kleink Exp $     */
+/*     $NetBSD: hostfile.c,v 1.15 2005/06/01 12:07:00 lukem Exp $      */
 /*
  * Author: Tatu Ylonen <ylo%cs.hut.fi@localhost>
  * Copyright (c) 1995 Tatu Ylonen <ylo%cs.hut.fi@localhost>, Espoo, Finland
@@ -38,7 +38,7 @@
 
 #include "includes.h"
 RCSID("$OpenBSD: hostfile.c,v 1.33 2005/03/01 10:40:26 djm Exp $");
-__RCSID("$NetBSD: hostfile.c,v 1.14 2005/04/24 13:31:01 kleink Exp $");
+__RCSID("$NetBSD: hostfile.c,v 1.15 2005/06/01 12:07:00 lukem Exp $");
 
 #include <resolv.h>
 #include <openssl/hmac.h>
@@ -317,7 +317,7 @@
 {
        FILE *f;
        int success = 0;
-       char *hashed_host;
+       char *hashed_host = NULL;
 
        if (key == NULL)
                return 1;       /* XXX ? */
diff -r c7a05767d5b4 -r 7f9896aacc81 crypto/dist/ssh/kexdhc.c
--- a/crypto/dist/ssh/kexdhc.c  Wed Jun 01 12:05:28 2005 +0000
+++ b/crypto/dist/ssh/kexdhc.c  Wed Jun 01 12:07:00 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kexdhc.c,v 1.3 2005/02/13 05:57:26 christos Exp $      */
+/*     $NetBSD: kexdhc.c,v 1.4 2005/06/01 12:07:00 lukem Exp $ */
 /*
  * Copyright (c) 2001 Markus Friedl.  All rights reserved.
  *
@@ -25,7 +25,7 @@
 
 #include "includes.h"
 RCSID("$OpenBSD: kexdhc.c,v 1.2 2004/06/13 12:53:24 djm Exp $");
-__RCSID("$NetBSD: kexdhc.c,v 1.3 2005/02/13 05:57:26 christos Exp $");
+__RCSID("$NetBSD: kexdhc.c,v 1.4 2005/06/01 12:07:00 lukem Exp $");
 
 #include "xmalloc.h"
 #include "key.h"
@@ -39,7 +39,7 @@
 kexdh_client(Kex *kex)
 {
        BIGNUM *dh_server_pub = NULL, *shared_secret = NULL;
-       DH *dh;
+       DH *dh = NULL;
        Key *server_host_key;
        u_char *server_host_key_blob = NULL, *signature = NULL;
        u_char *kbuf, *hash;



Home | Main Index | Thread Index | Old Index