Module: kamailio
Branch: master
Commit: 99710daa8b05a0a37ef3bb35e2ffd723908037f4
URL:
https://github.com/kamailio/kamailio/commit/99710daa8b05a0a37ef3bb35e2ffd72…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-09-16T15:28:14+02:00
core: proper condition for bind_ipv6_link_local modes
---
Modified: src/core/cfg.y
---
Diff:
https://github.com/kamailio/kamailio/commit/99710daa8b05a0a37ef3bb35e2ffd72…
Patch:
https://github.com/kamailio/kamailio/commit/99710daa8b05a0a37ef3bb35e2ffd72…
---
diff --git a/src/core/cfg.y b/src/core/cfg.y
index ae1c9ec4b0b..8bb77351230 100644
--- a/src/core/cfg.y
+++ b/src/core/cfg.y
@@ -1001,7 +1001,7 @@ assign_stm:
| IPV6_HEX_STYLE error { yyerror("string value expected"); }
| BIND_IPV6_LINK_LOCAL EQUAL NUMBER {
sr_bind_ipv6_link_local = $3;
- if(sr_bind_ipv6_link_local &&
(KSR_IPV6_LINK_LOCAL_BIND|KSR_IPV6_LINK_LOCAL_SKIP)) {
+ if(!(sr_bind_ipv6_link_local &&
(KSR_IPV6_LINK_LOCAL_BIND|KSR_IPV6_LINK_LOCAL_SKIP))) {
yyerror("incompatible modes set");
}
}