Skip to content

Commit 73f63af

Browse files
committed
lnc2 MAINTENANCE uninitialized vars
1 parent 9615c6d commit 73f63af

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/session_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3602,7 +3602,7 @@ nc_server_notif_cert_exp_wakeup_time_get(struct nc_cert_expiration *exp_dates, i
36023602
time_t min_time = LONG_MAX;
36033603
int i;
36043604
double diff;
3605-
time_t now, wakeup_time;
3605+
time_t now, wakeup_time = 0;
36063606

36073607
*next = NULL;
36083608

tests/ln2_test.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ ln2_glob_test_server_thread(void *arg)
7777

7878
/* accept a session and add it to the poll session structure */
7979
msgtype = nc_accept(NC_ACCEPT_TIMEOUT, test_ctx->ctx, &session);
80-
assert(msgtype == NC_MSG_HELLO);
80+
if (msgtype != NC_MSG_HELLO) {
81+
SETUP_FAIL_LOG;
82+
return NULL;
83+
}
8184

8285
ret = nc_ps_add_session(ps, session);
8386
assert(!ret);

0 commit comments

Comments
 (0)