diff options
author | Andreas Schneider <asn@samba.org> | 2012-12-06 18:04:41 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2012-12-12 15:00:02 +0100 |
commit | 34a18865d6d2acd05e93fc728510896e69449d79 (patch) | |
tree | 536b8e4732be53009d80c1eafcf42ed3d860e2c1 | |
parent | d55c6e7113efb9214f606dd183e5214a03f6dcae (diff) | |
download | samba-34a18865d6d2acd05e93fc728510896e69449d79.tar.gz samba-34a18865d6d2acd05e93fc728510896e69449d79.tar.bz2 samba-34a18865d6d2acd05e93fc728510896e69449d79.zip |
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>
-rw-r--r-- | source4/client/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/client/client.c b/source4/client/client.c index d7adc41ca1..1cd0e5d063 100644 --- a/source4/client/client.c +++ b/source4/client/client.c @@ -2901,7 +2901,8 @@ 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); |