Skip to content

Commit

Permalink
Use body->len as the only authoritative way to check if the provided …
Browse files Browse the repository at this point in the history
…body is empty or not.

(cherry picked from commit b0997b1)
(cherry picked from commit bd5a1d0)
  • Loading branch information
sobomax authored and liviuchircu committed Nov 5, 2020
1 parent c25411a commit 2149075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/parse_authenticate.c
Expand Up @@ -94,7 +94,7 @@ int parse_authenticate_body( str *body, struct authenticate_body *auth)
str val;
int quoted_val;

if (body->s==0 || *body->s==0 )
if (body->len == 0)
{
LM_ERR("empty body\n");
goto error;
Expand Down

0 comments on commit 2149075

Please sign in to comment.