in cleanuppeer(), reset username to NULL after free()ing it.
fixes [bin/8870] by Wolfgang Rupprecht <wolfgang@wsrcc.com>
This commit is contained in:
parent
1d9d2c47c5
commit
21da08ce70
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: util.c,v 1.83 1999/11/26 21:41:56 lukem Exp $ */
|
||||
/* $NetBSD: util.c,v 1.84 1999/11/27 01:00:06 lukem Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997-1999 The NetBSD Foundation, Inc.
|
||||
@ -75,7 +75,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: util.c,v 1.83 1999/11/26 21:41:56 lukem Exp $");
|
||||
__RCSID("$NetBSD: util.c,v 1.84 1999/11/27 01:00:06 lukem Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -253,6 +253,7 @@ cleanuppeer()
|
||||
epsv4bad = 0;
|
||||
if (username)
|
||||
free(username);
|
||||
username = NULL;
|
||||
if (!proxy)
|
||||
macnum = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user