From f4cae60ccbf3cc1a7c522b964dbe1a15b820efb6 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Sun, 6 Dec 2009 23:41:16 +0000 Subject: zap unused variable and strlen; from Steve McClellan, ok djm --- usr.bin/ssh/sshconnect2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.bin') 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); -- cgit v1.2.3