1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

s4-client: Make sure we have a valid count if we goto cleanup.

Found by Coverity.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
This commit is contained in:
Andreas Schneider 2012-12-06 18:04:41 +01:00 committed by Günther Deschner
parent d55c6e7113
commit 34a18865d6

View File

@ -2901,6 +2901,7 @@ static char **remote_completion(const char *text, int len)
info.samelen = len;
info.text = text;
info.len = len;
info.count = 0;
if (len >= PATH_MAX)
return(NULL);