server/ldap.c - fixed invalid compare to "\0"
added a release note
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)
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);