summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-04-22 09:45:54 +0200
committerVolker Lendecke <vl@samba.org>2011-04-22 10:06:36 +0200
commit018595e2587b5b5dd90bf318a1cf8b675e47b66b (patch)
treee7614e3dc884974c6f616978b10c096fbb28bd72 /source3/smbd
parent4981adcca37391b6745f10f5849fedd7c944410d (diff)
downloadsamba-018595e2587b5b5dd90bf318a1cf8b675e47b66b.tar.gz
samba-018595e2587b5b5dd90bf318a1cf8b675e47b66b.tar.bz2
samba-018595e2587b5b5dd90bf318a1cf8b675e47b66b.zip
s3: Fix Coverity ID 2335, CHECKED_RETURN
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 96595223a6..01d4332b7e 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -456,7 +456,9 @@ static bool netbios_session_retarget(struct smbd_server_connection *sconn,
p = strchr_m(retarget, '#');
if (p != NULL) {
*p++ = '\0';
- sscanf(p, "%x", &retarget_type);
+ if (sscanf(p, "%x", &retarget_type) != 1) {
+ goto fail;
+ }
}
ret = resolve_name(retarget, &retarget_addr, retarget_type, false);