From 018595e2587b5b5dd90bf318a1cf8b675e47b66b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 22 Apr 2011 09:45:54 +0200 Subject: s3: Fix Coverity ID 2335, CHECKED_RETURN --- source3/smbd/reply.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit