mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
always check tmsg for null prior to freeing it
This commit is contained in:
@@ -170,7 +170,8 @@ int handle_worker_commands(struct worker_st *ws)
|
||||
return 0;
|
||||
|
||||
udp_fd_fail:
|
||||
udp_fd_msg__free_unpacked(tmsg, NULL);
|
||||
if (tmsg)
|
||||
udp_fd_msg__free_unpacked(tmsg, NULL);
|
||||
if (ws->dtls_tptr.fd == -1)
|
||||
ws->udp_state = UP_DISABLED;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user