diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2010-12-06 22:49:16 +0800 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2010-12-06 22:49:16 +0800 |
commit | 07921157f6d77826e474eac64a425736a92e2321 (patch) | |
tree | 9175195ddc1b22be2fe1213925605fd6c92ec591 /libempathy/empathy-server-sasl-handler.c | |
parent | 66f79bec1ec6b59d362324fbfdf0335e60c1d8e6 (diff) | |
download | gsoc2013-empathy-07921157f6d77826e474eac64a425736a92e2321.tar gsoc2013-empathy-07921157f6d77826e474eac64a425736a92e2321.tar.gz gsoc2013-empathy-07921157f6d77826e474eac64a425736a92e2321.tar.bz2 gsoc2013-empathy-07921157f6d77826e474eac64a425736a92e2321.tar.lz gsoc2013-empathy-07921157f6d77826e474eac64a425736a92e2321.tar.xz gsoc2013-empathy-07921157f6d77826e474eac64a425736a92e2321.tar.zst gsoc2013-empathy-07921157f6d77826e474eac64a425736a92e2321.zip |
server-sasl-handler: handle invalid SASL statuses
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'libempathy/empathy-server-sasl-handler.c')
-rw-r--r-- | libempathy/empathy-server-sasl-handler.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy/empathy-server-sasl-handler.c b/libempathy/empathy-server-sasl-handler.c index d9f504942..4b5a44193 100644 --- a/libempathy/empathy-server-sasl-handler.c +++ b/libempathy/empathy-server-sasl-handler.c @@ -79,6 +79,13 @@ sasl_status_changed_cb (TpChannel *channel, { EmpathyServerSASLHandlerPriv *priv = GET_PRIV (weak_object); + /* buh boh */ + if (status >= G_N_ELEMENTS (sasl_statuses)) + { + DEBUG ("SASL status changed to unknown status"); + return; + } + DEBUG ("SASL status changed to '%s'", sasl_statuses[status]); if (status == TP_SASL_STATUS_SERVER_SUCCEEDED) |