| |
| Fix undefined reference to `ks_ldap_free_state' if OpenLDAP is not |
| installed |
| |
| Backported from: 7011286ce6e1fb56c2989fdafbd11b931c489faa |
| |
| Signed-off-by: Michael Fischer <mf@go-sys.de> |
| |
| --- a/dirmngr/server.c |
| +++ b/dirmngr/server.c |
| @@ -3137,8 +3137,10 @@ start_command_handler (assuan_fd_t fd, unsigned int session_id) |
| ctrl->refcount); |
| else |
| { |
| +#if USE_LDAP |
| ks_ldap_free_state (ctrl->ks_get_state); |
| ctrl->ks_get_state = NULL; |
| +#endif |
| release_ctrl_ocsp_certs (ctrl); |
| xfree (ctrl->server_local); |
| dirmngr_deinit_default_ctrl (ctrl); |