memset() in opiechallenge() really is not needed because it is the very
first thing 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));
...

And then the patch included:

--- challenge.c.bak     Tue Apr 11 16:52:01 2000
+++ challenge.c Tue Jan 22 01:07:06 2002
@@ -52,8 +52,6 @@
 {
   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);

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to