Skip to content

Commit

Permalink
Return may be smaller than zero
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 23, 2014
1 parent 7ec886b commit b531205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/rlm_sqlcounter/rlm_sqlcounter.c
Expand Up @@ -320,7 +320,7 @@ static int sqlcounter_cmp(void *instance, REQUEST *request, UNUSED VALUE_PAIR *r

char query[MAX_QUERY_LEN], subst[MAX_QUERY_LEN];
char *expanded = NULL;
size_t len;
ssize_t len;

/* First, expand %k, %b and %e in query */
len = sqlcounter_expand(subst, sizeof(subst), inst->query, inst);
Expand Down Expand Up @@ -460,7 +460,7 @@ static rlm_rcode_t mod_authorize(void *instance, REQUEST *request)
char query[MAX_QUERY_LEN], subst[MAX_QUERY_LEN];
char *expanded = NULL;

size_t len;
ssize_t len;

rad_assert(instance != NULL);
rad_assert(request != NULL);
Expand Down

0 comments on commit b531205

Please sign in to comment.