[PATCH] Avoid 'cookie parsing error' on OpenLDAP 2.3

"Mathieu Parent" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <[email protected]>
Thanks to Richard Boss for spotting this.

---
 lib/Net/LDAP/Control/SyncRequest.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/Net/LDAP/Control/SyncRequest.pm
b/lib/Net/LDAP/Control/SyncRequest.pm
index 95cd716..d905d7b 100644
--- a/lib/Net/LDAP/Control/SyncRequest.pm
+++ b/lib/Net/LDAP/Control/SyncRequest.pm
@@ -21,7 +21,7 @@ sub init {
   unless (exists $self->{value}) {
     $self->{asn} = {
       mode => $self->{mode} || '1',
-      cookie => $self->{cookie} || '',
+      cookie => $self->{cookie} || undef,
       reloadHint   => $self->{reloadHint} || '0',
     };
   }
--
1.5.6.5
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.