Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add some hints for coverity
  • Loading branch information
Fabian Mauchle committed May 31, 2021
1 parent 43a6fbc commit c374141
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dtls.c
Expand Up @@ -142,6 +142,7 @@ int dtlsread(SSL *ssl, unsigned char *buf, int num, int timeout, pthread_mutex_t
continue;
case SSL_ERROR_ZERO_RETURN:
debug(DBG_DBG, "dtlsread: got ssl shutdown");
/* fallthrough */
default:
while ((error = ERR_get_error()))
debug(DBG_ERR, "dtlsread: SSL: %s", ERR_error_string(error, NULL));
Expand Down
2 changes: 1 addition & 1 deletion list.h
Expand Up @@ -35,7 +35,7 @@ int list_push(struct list *list, void *data);
/* removes first entry from list and returns data */
void *list_shift(struct list *list);

/* removes first entry with matching data pointer */
/* removes all entries with matching data pointer */
void list_removedata(struct list *list, void *data);

/* returns first node */
Expand Down
1 change: 1 addition & 0 deletions tls.c
Expand Up @@ -251,6 +251,7 @@ int sslreadtimeout(SSL *ssl, unsigned char *buf, int num, int timeout, pthread_m
continue;
case SSL_ERROR_ZERO_RETURN:
debug(DBG_DBG, "sslreadtimeout: got ssl shutdown");
/* fallthrough */
default:
while ((error = ERR_get_error()))
debug(DBG_ERR, "sslreadtimeout: SSL: %s", ERR_error_string(error, NULL));
Expand Down

0 comments on commit c374141

Please sign in to comment.