From 13b0e65b0ddef79bd402118f8ec52af2b3cc89fe Mon Sep 17 00:00:00 2001 From: robertc <> Date: Wed, 12 Jun 2002 17:47:59 +0000 Subject: [PATCH] clear out new auth_user_request objects in case of reused memory --- src/authenticate.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/authenticate.cc b/src/authenticate.cc index f9f56e5843..05eb0faea0 100644 --- a/src/authenticate.cc +++ b/src/authenticate.cc @@ -1,6 +1,6 @@ /* - * $Id: authenticate.cc,v 1.37 2002/02/20 14:16:07 hno Exp $ + * $Id: authenticate.cc,v 1.38 2002/06/12 11:47:59 robertc Exp $ * * DEBUG: section 29 Authenticator * AUTHOR: Duane Wessels @@ -197,10 +197,7 @@ authenticateAuthUserRequestNew(void) auth_user_request_pool = memPoolCreate("Authenticate Request Data", sizeof(auth_user_request_t)); temp_request = memPoolAlloc(auth_user_request_pool); assert(temp_request != NULL); - temp_request->auth_user = NULL; - temp_request->message = NULL; - temp_request->scheme_data = NULL; - temp_request->references = 0; + memset(temp_request, '\0', sizeof(auth_user_request_t)); return temp_request; } -- 2.47.3