Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix coverity issues
  • Loading branch information
Fabian Mauchle committed Jul 31, 2020
1 parent b00b958 commit da884aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion radmsg.c
Expand Up @@ -296,7 +296,7 @@ struct radmsg *buf2radmsg(uint8_t *buf, uint8_t *secret, int secret_len, uint8_t
while (p - buf + 2 <= len) {
t = *p++;
l = *p++;
if (l < 2) {
if (l < 2 || l > 255) {
debug(DBG_WARN, "buf2radmsg: invalid attribute length %d", l);
radmsg_free(msg);
return NULL;
Expand Down
3 changes: 2 additions & 1 deletion radsecproxy.c
Expand Up @@ -3046,7 +3046,8 @@ int radsecproxy_main(int argc, char **argv) {
sigaddset(&sigset, SIGHUP);
sigaddset(&sigset, SIGPIPE);
pthread_sigmask(SIG_BLOCK, &sigset, NULL);
pthread_create(&sigth, &pthread_attr, sighandler, NULL);
if (pthread_create(&sigth, &pthread_attr, sighandler, NULL))
debugx(1, DBG_ERR, "pthread_create failed: sighandler");

for (entry = list_first(srvconfs); entry; entry = list_next(entry)) {
srvconf = (struct clsrvconf *)entry->data;
Expand Down

0 comments on commit da884aa

Please sign in to comment.