Module: kamailio Branch: 4.4 Commit: 2372150f292363fd8c1705dfd69184e9a898f86a URL: https://github.com/kamailio/kamailio/commit/2372150f292363fd8c1705dfd69184e9...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2016-10-10T12:11:12+02:00
auth_identity: fix misleading indentation level
(cherry picked from commit e5532f05d7b2b6b8d90d01fd9e934a412c7168e0)
---
Modified: modules/auth_identity/auth_hdrs.c
---
Diff: https://github.com/kamailio/kamailio/commit/2372150f292363fd8c1705dfd69184e9... Patch: https://github.com/kamailio/kamailio/commit/2372150f292363fd8c1705dfd69184e9...
---
diff --git a/modules/auth_identity/auth_hdrs.c b/modules/auth_identity/auth_hdrs.c index 06a773b..a5099b6 100644 --- a/modules/auth_identity/auth_hdrs.c +++ b/modules/auth_identity/auth_hdrs.c @@ -449,7 +449,7 @@ int digeststr_asm(dynstr *sout, struct sip_msg *msg, str *sdate, int iflags)
/* there was an error or the required header is missing */ if (iRes==AUTH_ERROR - || (iRes==AUTH_NOTFOUND && (pactpart[i1].iflag & DS_REQUIRED))) + || (iRes==AUTH_NOTFOUND && (pactpart[i1].iflag & DS_REQUIRED))) return -1;
switch (pactpart[i1].itype) { @@ -569,10 +569,12 @@ int append_date(str *sdate, int idatesize, time_t *tout, struct sip_msg *msg) if (sdate && idatesize >= ilen) { memcpy(sdate->s, date_str, ilen); sdate->len=ilen; - } else + } else { return -5; - if (tout) - *tout=tdate_now; + } + + if (tout) + *tout=tdate_now;
return 0; } @@ -667,24 +669,24 @@ static char *auth_get_hf_name(char *begin, char *end, enum _hdr_types_t *type) goto other; } else { return (p + 1); - } + }
/* Unknown header type */ other: p = q_memchr(p, ':', end - p); - if (!p) { /* No double colon found, error.. */ + if (!p) { /* No double colon found, error.. */ *type = HDR_ERROR_T; return 0; - } else { + } else { *type = HDR_OTHER_T; return (p + 1); - } + }
return p; }
/* parses buffer that contains a SIP message header, looks for "Contact" - header field and returns the value of that */ + * header field and returns the value of that */ static int get_contact_body(char *buf, unsigned int len, str *sout) { char *end, *s, *tmp, *match;