summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-19 13:09:02 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-21 22:20:59 +0100
commitb534842726df1841e11fd6d0a4d2d0e10b0efa16 (patch)
treec97a4efba3e029d9fa413d3fd9f3f9cf69fd84e5 /src
parent8a744d0649ecd95696227e672e1611b0f3514549 (diff)
downloadcmumble-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.c6
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 */