* setpwd.cc (client_request_setpwd::serve): Explicitely erase password
buffer content after usage.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | ||||
| 2008-12-15  Corinna Vinschen  <corinna@vinschen.de> | ||||
|  | ||||
| 	* setpwd.cc (client_request_setpwd::serve): Explicitely erase password | ||||
| 	buffer content after usage. | ||||
|  | ||||
| 2008-11-26  Corinna Vinschen  <corinna@vinschen.de> | ||||
|  | ||||
| 	* Makefile.in (OBJS): Add setpwd.o. | ||||
|   | ||||
| @@ -90,6 +90,8 @@ client_request_setpwd::serve (transport_layer_base *const conn, | ||||
|   RtlAppendUnicodeStringToString (&key, &sid); | ||||
|   RtlInitUnicodeString (&data, _parameters.in.passwd); | ||||
|   status = LsaStorePrivateData (lsa, &key, data.Length ? &data : NULL); | ||||
|   if (data.Length) | ||||
|     memset (data.Buffer, 0, data.Length); | ||||
|   if (NT_SUCCESS (status)) | ||||
|     error_code (0); | ||||
|   else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user