File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
authservice/mqsimpleauth/src Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,7 @@ static void MQENTRY mqsimpleauth_authenticate_user_csp(
141
141
* pReason = MQRC_SERVICE_ERROR ;
142
142
if (csp_user )
143
143
{
144
+ memset (csp_user , 0 , pSecurityParms -> CSPUserIdLength );
144
145
free (csp_user );
145
146
}
146
147
return ;
@@ -200,10 +201,12 @@ static void MQENTRY mqsimpleauth_authenticate_user_csp(
200
201
}
201
202
if (csp_user )
202
203
{
204
+ memset (csp_user , 0 , pSecurityParms -> CSPUserIdLength );
203
205
free (csp_user );
204
206
}
205
207
if (csp_pass )
206
208
{
209
+ memset (csp_pass , 0 , pSecurityParms -> CSPPasswordLength );
207
210
free (csp_pass );
208
211
}
209
212
return ;
@@ -286,6 +289,7 @@ static void MQENTRY mqsimpleauth_authenticate_user(
286
289
}
287
290
if (spuser )
288
291
{
292
+ memset (spuser , 0 , sizeof (PMQCHAR12 ) + 1 );
289
293
free (spuser );
290
294
}
291
295
}
You can’t perform that action at this time.
0 commit comments