diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2009-12-06 23:41:16 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2009-12-06 23:41:16 +0000 |
commit | f4cae60ccbf3cc1a7c522b964dbe1a15b820efb6 (patch) | |
tree | b235f4c5f6b2ad6d29655f8425fbd1fe001fd1bc /usr.bin | |
parent | ffb2f7ddabc0987170fc69baa096e14ebbf1f0f2 (diff) |
zap unused variable and strlen; from Steve McClellan, ok djm
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/sshconnect2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c index fb773ad9aa9..48795e281eb 100644 --- a/usr.bin/ssh/sshconnect2.c +++ b/usr.bin/ssh/sshconnect2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshconnect2.c,v 1.175 2009/11/20 00:59:36 dtucker Exp $ */ +/* $OpenBSD: sshconnect2.c,v 1.176 2009/12/06 23:41:15 dtucker Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2008 Damien Miller. All rights reserved. @@ -1583,7 +1583,7 @@ userauth_hostbased(Authctxt *authctxt) char *chost, *pkalg, *p, myname[NI_MAXHOST]; const char *service; u_int blen, slen; - int ok, i, len, found = 0; + int ok, i, found = 0; /* check for a useful key */ for (i = 0; i < sensitive->nkeys; i++) { @@ -1620,7 +1620,6 @@ userauth_hostbased(Authctxt *authctxt) xfree(blob); return 0; } - len = strlen(p) + 2; xasprintf(&chost, "%s.", p); debug2("userauth_hostbased: chost %s", chost); xfree(p); |