Browse Source

Use validhex before checking sessionid in disconnected_sessionid_exists to avoid spewing warnings for client errors

master
Con Kolivas 10 years ago
parent
commit
9892f3af64
  1. 3
      src/stratifier.c

3
src/stratifier.c

@ -1144,6 +1144,9 @@ static uint64_t disconnected_sessionid_exists(sdata_t *sdata, const char *sessio
if (slen < 1 || slen > 8) if (slen < 1 || slen > 8)
goto out; goto out;
if (!validhex(sessionid))
goto out;
/* Number is in BE but we don't swap either of them */ /* Number is in BE but we don't swap either of them */
hex2bin(&enonce1_64, sessionid, slen); hex2bin(&enonce1_64, sessionid, slen);

Loading…
Cancel
Save