Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Apr 21, 2024
1 parent 7b6f19c commit a9a2873
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sip/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static bool auth_handler(const struct sip_hdr *hdr, const struct sip_msg *msg,
}

if (!pl_isset(&ch.algorithm))
pl_set_str(&ch.algorithm, "md5");
pl_set_str(&ch.algorithm, "MD5");

if (pl_strcasecmp(&ch.algorithm, "md5") &&
pl_strcasecmp(&ch.algorithm, "sha-256")) {
Expand Down Expand Up @@ -236,15 +236,15 @@ static bool auth_handler(const struct sip_hdr *hdr, const struct sip_msg *msg,
if (pl_isset(&ch.opaque))
err |= pl_strdup(&realm->opaque, &ch.opaque);

out:
out:
if (err) {
mem_deref(realm);
auth->err = err;
return true;
}

return false;
}
}


/**
Expand Down

0 comments on commit a9a2873

Please sign in to comment.