Commit 83175640 authored by Thomas Markwalder's avatar Thomas Markwalder

[#51] Fixed a syntax error in ldap.c

server/ldap.c - fixed invalid compare to "\0"

added a release note
parent 2fefb3ff
......@@ -199,6 +199,10 @@ by Eric Young (eay@cryptsoft.com).
source.
[Gitlab #35]
- Fixed a syntax error in ldap.c which cropped up under Ubuntu
18.04.1/gcc 7.4.0. Thanks to Charles Hedrick for pointing it out.
[Gitlab #51]
Changes since 4.4.0 (New Features)
- none
Changes since 4.4.0 (Bug Fixes)
......
......@@ -925,7 +925,7 @@ ldap_parse_failover (struct ldap_config_stack *item, struct parse *cfile)
ldap_value_free_len (tempbv);
if (primary == -1 || srvaddr[0] == '\0' || srvaddr[1] == '\0')
if (primary == -1 || *srvaddr[0] == '\0' || *srvaddr[1] == '\0')
{
log_error("Could not decide if the server type is primary"
" or secondary for failover peering '%s'.", peername[0]->bv_val);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment