[sr-dev] git:master:fa6245ce: core: cmp hdrname fix on checking type of second header

Daniel-Constantin Mierla miconda at gmail.com
Mon Aug 2 09:02:24 CEST 2021


Module: kamailio
Branch: master
Commit: fa6245ce33602eeff1d776b921fd41400ae5bb48
URL: https://github.com/kamailio/kamailio/commit/fa6245ce33602eeff1d776b921fd41400ae5bb48

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-08-02T09:02:14+02:00

core: cmp hdrname fix on checking type of second header

---

Modified: src/core/strutils.c

---

Diff:  https://github.com/kamailio/kamailio/commit/fa6245ce33602eeff1d776b921fd41400ae5bb48.diff
Patch: https://github.com/kamailio/kamailio/commit/fa6245ce33602eeff1d776b921fd41400ae5bb48.patch

---

diff --git a/src/core/strutils.c b/src/core/strutils.c
index 7b6a40ee3e..25d58747d9 100644
--- a/src/core/strutils.c
+++ b/src/core/strutils.c
@@ -477,7 +477,7 @@ int cmp_hdrname_str(str *s1, str *s2)
 		} else {
 			return 2;
 		}
-	} else if(hf1.type!=HDR_OTHER_T) {
+	} else if(hf2.type!=HDR_OTHER_T) {
 		return 2;
 	}
 	return cmpi_str(&n1, &n2);
@@ -508,7 +508,7 @@ int cmp_hdrname_strzn(str *s1, char *s2, size_t len)
 		} else {
 			return 2;
 		}
-	} else if(hf1.type!=HDR_OTHER_T) {
+	} else if(hf2.type!=HDR_OTHER_T) {
 		return 2;
 	}
 	return cmpi_str(&n1, &n2);




More information about the sr-dev mailing list