From 9892f3af6441264ca32633fedd366b13861addce Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 20 Jan 2015 11:22:24 +1100 Subject: [PATCH] Use validhex before checking sessionid in disconnected_sessionid_exists to avoid spewing warnings for client errors --- src/stratifier.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stratifier.c b/src/stratifier.c index 91c9bb84..1c2d673f 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1144,6 +1144,9 @@ static uint64_t disconnected_sessionid_exists(sdata_t *sdata, const char *sessio if (slen < 1 || slen > 8) goto out; + if (!validhex(sessionid)) + goto out; + /* Number is in BE but we don't swap either of them */ hex2bin(&enonce1_64, sessionid, slen);