aboutsummaryrefslogtreecommitdiff
path: root/contrib/opie/libopie/challenge.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2002-01-24 22:19:21 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2002-01-24 22:19:21 +0000
commit9df24552a085698e7f10f5c16d79829ee20fa15f (patch)
tree63c356d8d7ee1f7d99ca0ac8e1c742bef6bc3426 /contrib/opie/libopie/challenge.c
parent9118ec5a27abbbfa10e77acf45ecca7d13352eb7 (diff)
downloadsrc-9df24552a085698e7f10f5c16d79829ee20fa15f.tar.gz
src-9df24552a085698e7f10f5c16d79829ee20fa15f.zip
Zeroing memset() in opiechallenge() really is not needed because it is the
very first thing immediately following opielookup() does being entered, i.e. look at this: int opielookup FUNCTION((opie, principal), struct opie *opie AND char *principal ) { int i; memset(opie, 0, sizeof(struct opie)); ...
Notes
Notes: svn path=/head/; revision=89766
Diffstat (limited to 'contrib/opie/libopie/challenge.c')
-rw-r--r--contrib/opie/libopie/challenge.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/opie/libopie/challenge.c b/contrib/opie/libopie/challenge.c
index 0f3fec55cf22..b93171492b8d 100644
--- a/contrib/opie/libopie/challenge.c
+++ b/contrib/opie/libopie/challenge.c
@@ -20,6 +20,9 @@ License Agreement applies to this software.
syslog. Add sha plumbing.
Modified by cmetz for OPIE 2.2. Use FUNCTION declaration et al.
Created at NRL for OPIE 2.2 from opiesubr2.c
+
+$FreeBSD$
+
*/
#include "opie_cfg.h"
#include <stdio.h>
@@ -52,8 +55,6 @@ int opiechallenge FUNCTION((mp, name, ss), struct opie *mp AND char *name AND ch
{
int rval = -1;
- memset(mp, 0, sizeof(*mp));
-
rval = opielookup(mp, name);
#if DEBUG
if (rval) syslog(LOG_DEBUG, "opiechallenge: opielookup(mp, name=%s) returned %d", name, rval);