Module: sip-router Branch: master Commit: aea31fcdebe13004dbcea3afeabe4a045fefcc9c URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=aea31fcd...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Fri Sep 28 23:40:01 2012 +0200
ldap(k): updates for usage of pv cache for pv_elem_t
---
modules_k/ldap/ldap_exp_fn.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/ldap/ldap_exp_fn.c b/modules_k/ldap/ldap_exp_fn.c index 436b299..6e425c6 100644 --- a/modules_k/ldap/ldap_exp_fn.c +++ b/modules_k/ldap/ldap_exp_fn.c @@ -71,7 +71,7 @@ int ldap_search_impl( LM_ERR("empty ldap_url\n"); return -2; } - if ( _ldap_url->spec.getf!=NULL) { + if ( _ldap_url->spec!=NULL && _ldap_url->spec->getf!=NULL) { if (pv_printf_s( _msg, _ldap_url, &ldap_url)!=0 || ldap_url.len<=0) { LM_ERR("pv_printf_s failed\n"); return -2;