Skip to content

Commit 4992d80

Browse files
committed
server session BUGFIX uninitialized variable
1 parent 6c2277c commit 4992d80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/session_server.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,7 @@ nc_ps_poll(struct nc_pollsession *ps, int timeout, struct nc_session **session)
13921392
} else if (ps->sessions[i].state == NC_PS_STATE_BUSY) {
13931393
/* it definitely should not be busy because we have the lock */
13941394
ERRINT;
1395+
ret = NC_PSPOLL_ERROR;
13951396
}
13961397

13971398
/* keep the session locked only in this one case */

0 commit comments

Comments
 (0)