From dad353741862cc08db69a381e72c829e7390258e Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Thu, 6 Jun 2024 16:01:30 +0200 Subject: [PATCH] session server UPDATE always set out params --- src/session_server.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/session_server.c b/src/session_server.c index 7e698878..f73d2ab9 100644 --- a/src/session_server.c +++ b/src/session_server.c @@ -1810,6 +1810,10 @@ nc_ps_poll(struct nc_pollsession *ps, int timeout, struct nc_session **session) NC_CHECK_ARG_RET(NULL, ps, NC_PSPOLL_ERROR); + if (session) { + *session = NULL; + } + /* PS LOCK */ if (nc_ps_lock(ps, &q_id, __func__)) { return NC_PSPOLL_ERROR;