diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-11-19 13:09:02 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-11-21 22:20:59 +0100 |
commit | b534842726df1841e11fd6d0a4d2d0e10b0efa16 (patch) | |
tree | c97a4efba3e029d9fa413d3fd9f3f9cf69fd84e5 /src | |
parent | 8a744d0649ecd95696227e672e1611b0f3514549 (diff) | |
download | cmumble-b534842726df1841e11fd6d0a4d2d0e10b0efa16.tar.gz cmumble-b534842726df1841e11fd6d0a4d2d0e10b0efa16.tar.bz2 cmumble-b534842726df1841e11fd6d0a4d2d0e10b0efa16.zip |
recv_user_state: Check for availability of the session id
Diffstat (limited to 'src')
-rw-r--r-- | src/cmumble.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmumble.c b/src/cmumble.c index d0096b0..259559c 100644 --- a/src/cmumble.c +++ b/src/cmumble.c @@ -154,6 +154,12 @@ recv_user_state(MumbleProto__UserState *state, struct cmumble *cm) { struct cmumble_user *user = NULL; + if (!state->has_session) { + if (cm->verbose) + g_print("%s: no session", __func__); + return; + } + user = find_user(cm, state->session); if (user) { /* update */ |