Codebase list libnice / eb9d67d
stunagent: Only declare the long term key valid if the username/realm coudl be read Olivier CrĂȘte 10 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
553553 stun_hash_creds (realm, realm_len,
554554 username, username_len,
555555 key, key_len, md5);
556 memcpy (msg->long_term_key, md5, sizeof(msg->long_term_key));
557 msg->long_term_valid = TRUE;
556558 }
557 memcpy (msg->long_term_key, md5, sizeof(msg->long_term_key));
558 msg->long_term_valid = TRUE;
559559 }
560560
561561 /* If no realm/username and long term credentials,