1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s3:samr: Add missing NULL pointer check

Found by Coverity.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>
This commit is contained in:
Andreas Schneider 2020-06-10 17:35:55 +02:00 committed by Isaac Boukris
parent e7d4926654
commit c57276cae6

View File

@ -638,6 +638,9 @@ the string %%u, and the given string %s does not.\n", passwordprogram ));
chatsequence,
"%n",
newpass);
if (chatsequence == NULL) {
return false;
}
return chat_with_program(passwordprogram,
pass,
chatsequence,