Module: kamailio
Branch: master
Commit: f7045d1c08d37e91ee7e96e415c06b218aee98fd
URL:
https://github.com/kamailio/kamailio/commit/f7045d1c08d37e91ee7e96e415c06b2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-09-18T19:23:28+02:00
core: reqorked check for incompatible modes of bind_ipv6_link_local
---
Modified: src/core/cfg.y
---
Diff:
https://github.com/kamailio/kamailio/commit/f7045d1c08d37e91ee7e96e415c06b2…
Patch:
https://github.com/kamailio/kamailio/commit/f7045d1c08d37e91ee7e96e415c06b2…
---
diff --git a/src/core/cfg.y b/src/core/cfg.y
index 8bb77351230..afb07b415dd 100644
--- a/src/core/cfg.y
+++ b/src/core/cfg.y
@@ -1001,7 +1001,8 @@ 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)
+ && (sr_bind_ipv6_link_local & KSR_IPV6_LINK_LOCAL_SKIP)) {
yyerror("incompatible modes set");
}
}