Skip to content

Commit

Permalink
Assertions for scan complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 17, 2014
1 parent cefe4fa commit cf5c1f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/rlm_rest/rest.c
Expand Up @@ -1832,6 +1832,7 @@ int rest_request_config(rlm_rest_t *instance, rlm_rest_section_t *section,
char buffer[512];

rad_assert((!username && !password) || (username && password));
rad_assert(request != NULL);

buffer[(sizeof(buffer) - 1)] = '\0';

Expand Down

0 comments on commit cf5c1f8

Please sign in to comment.