[Pkg-telepathy-commits] [libnice] 252/265: stunagent: Only declare the long term key valid if the username/realm coudl be read

Simon McVittie smcv at debian.org
Wed May 14 12:05:13 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository libnice.

commit eb9d67d7d801b2e7108fde7da822cffb906f95cf
Author: Olivier Crête <olivier.crete at collabora.com>
Date:   Thu Apr 24 21:32:40 2014 -0400

    stunagent: Only declare the long term key valid if the username/realm coudl be read
---
 stun/stunagent.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stun/stunagent.c b/stun/stunagent.c
index 40e4d15..72cc231 100644
--- a/stun/stunagent.c
+++ b/stun/stunagent.c
@@ -554,9 +554,9 @@ size_t stun_agent_finish_message (StunAgent *agent, StunMessage *msg,
         stun_hash_creds (realm, realm_len,
             username,  username_len,
             key, key_len, md5);
+        memcpy (msg->long_term_key, md5, sizeof(msg->long_term_key));
+        msg->long_term_valid = TRUE;
       }
-      memcpy (msg->long_term_key, md5, sizeof(msg->long_term_key));
-      msg->long_term_valid = TRUE;
     }
 
     /* If no realm/username and long term credentials,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git



More information about the Pkg-telepathy-commits mailing list