Skip to content

Commit

Permalink
mod_webmail: Fix NULL dereference in FETCHLIST.
Browse files Browse the repository at this point in the history
LBBS-87 #close
  • Loading branch information
InterLinked1 committed Dec 4, 2024
1 parent 5228300 commit deeff7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/mod_webmail.c
Original file line number Diff line number Diff line change
Expand Up @@ -2269,7 +2269,9 @@ static int fetchlist(struct ws_session *ws, struct imap_client *client, const ch
if (fetch_result) {
mailimap_fetch_list_free(fetch_result);
}
mailimap_fetch_type_free(fetch_type);
if (fetch_type) { /* This can be NULL here... */
mailimap_fetch_type_free(fetch_type);
}

finalize:
mailimap_set_free(set);
Expand Down

0 comments on commit deeff7f

Please sign in to comment.