mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-22 17:24:23 +01:00
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)); ...
This commit is contained in:
parent
9118ec5a27
commit
9df24552a0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89766
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user