Commit b24c16c2 authored by Pekka Pessi's avatar Pekka Pessi

auth_module.c: fix size_t check

MeeGo Coverity issue CID#7593
parent a175f2eb
......@@ -535,7 +535,7 @@ void auth_method_basic(auth_mod_t *am,
if (!au->au_params)
continue;
n = base64_d(userpass, upsize - 1, au->au_params[0]);
if (n < 0 || n >= INT_MAX)
if (n >= INT_MAX)
continue;
if (n >= upsize) {
void *b = realloc(userpass == buffer ? NULL : userpass, upsize = n + 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment