Skip to content

Commit

Permalink
auth_ephemeral: re-ordered code so access to sip msg is done after NU…
Browse files Browse the repository at this point in the history
…LL check
  • Loading branch information
miconda committed Nov 3, 2016
1 parent e415c3a commit a471e47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/auth_ephemeral/authorize.c
Expand Up @@ -334,17 +334,17 @@ int autheph_www2(struct sip_msg *_m, char *_realm, char *_method)
return AUTH_ERROR;
}

if (_m->REQ_METHOD == METHOD_ACK || _m->REQ_METHOD == METHOD_CANCEL)
{
return AUTH_OK;
}

if(_m == NULL || _realm == NULL)
{
LM_ERR("invalid parameters\n");
return AUTH_ERROR;
}

if (_m->REQ_METHOD == METHOD_ACK || _m->REQ_METHOD == METHOD_CANCEL)
{
return AUTH_OK;
}

if (get_str_fparam(&srealm, _m, (fparam_t*)_realm) < 0)
{
LM_ERR("failed to get realm value\n");
Expand Down

0 comments on commit a471e47

Please sign in to comment.