Skip to content

Commit

Permalink
secsipid: debug message if identity header is not found
Browse files Browse the repository at this point in the history
(cherry picked from commit 0920aa1)
  • Loading branch information
miconda committed Jan 6, 2023
1 parent a0e89d8 commit bea811e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/modules/secsipid/secsipid_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ static int ki_secsipid_check_identity(sip_msg_t *msg, str *keypath)
}
}

if(ibody.len==0) {
LM_DBG("identity header not found\n");
}

LM_DBG("identity check: failed\n");
return ret;
}
Expand Down Expand Up @@ -301,6 +305,10 @@ static int ki_secsipid_check_identity_pubkey(sip_msg_t *msg, str *keyval)
}
}

if(ibody.len==0) {
LM_DBG("identity header not found\n");
}

LM_DBG("identity check: failed\n");
return ret;
}
Expand Down

0 comments on commit bea811e

Please sign in to comment.