summaryrefslogtreecommitdiff
path: root/pjnath/src/pjnath-test/stun.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjnath/src/pjnath-test/stun.c')
-rw-r--r--pjnath/src/pjnath-test/stun.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/pjnath/src/pjnath-test/stun.c b/pjnath/src/pjnath-test/stun.c
index c530cf1c..51afc0dd 100644
--- a/pjnath/src/pjnath-test/stun.c
+++ b/pjnath/src/pjnath-test/stun.c
@@ -692,7 +692,7 @@ static int fingerprint_test_vector()
if (v->options & USE_MESSAGE_INTEGRITY) {
if (PJ_STUN_IS_REQUEST(msg->hdr.type)) {
pj_stun_auth_cred cred;
- pj_status_t status;
+ pj_status_t status2;
pj_bzero(&cred, sizeof(cred));
cred.type = PJ_STUN_AUTH_CRED_STATIC;
@@ -701,11 +701,11 @@ static int fingerprint_test_vector()
cred.data.static_cred.data = pj_str(v->password);
cred.data.static_cred.nonce = pj_str(v->nonce);
- status = pj_stun_authenticate_request(buf, (unsigned)len, msg,
+ status2 = pj_stun_authenticate_request(buf, (unsigned)len, msg,
&cred, pool, NULL, NULL);
- if (status != PJ_SUCCESS) {
+ if (status2 != PJ_SUCCESS) {
char errmsg[PJ_ERR_MSG_SIZE];
- pj_strerror(status, errmsg, sizeof(errmsg));
+ pj_strerror(status2, errmsg, sizeof(errmsg));
PJ_LOG(1,(THIS_FILE,
" Request authentication failed: %s",
errmsg));
@@ -714,12 +714,12 @@ static int fingerprint_test_vector()
}
} else if (PJ_STUN_IS_RESPONSE(msg->hdr.type)) {
- pj_status_t status;
- status = pj_stun_authenticate_response(buf, (unsigned)len,
+ pj_status_t status2;
+ status2 = pj_stun_authenticate_response(buf, (unsigned)len,
msg, &key);
- if (status != PJ_SUCCESS) {
+ if (status2 != PJ_SUCCESS) {
char errmsg[PJ_ERR_MSG_SIZE];
- pj_strerror(status, errmsg, sizeof(errmsg));
+ pj_strerror(status2, errmsg, sizeof(errmsg));
PJ_LOG(1,(THIS_FILE,
" Response authentication failed: %s",
errmsg));