Skip to content

Commit 27f2c7e

Browse files
committed
The serialize code assumes there is an id set
1 parent 486ea07 commit 27f2c7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/conn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,7 @@ static int sm_store_u32(unsigned char **next_,
14851485
static size_t sm_state_serialize(xmpp_conn_t *conn, unsigned char **buf)
14861486
{
14871487
if (!conn->sm_state->sm_support || !conn->sm_state->sm_enabled ||
1488-
!conn->sm_state->can_resume) {
1488+
!conn->sm_state->can_resume || !conn->sm_state->id) {
14891489
*buf = NULL;
14901490
return 0;
14911491
}

0 commit comments

Comments
 (0)