Permalink
Browse files

Message.pm: fix Net::LDAP::Message::Dummy->new()

Add the 'mesgid' property to new Net::LDAP::Message::Dummy objects
to avoid a warning in unbind().
  • Loading branch information...
1 parent e80162e commit bece0e32ecda5fa960da7a8430f6220f29d2680b @marschap marschap committed Nov 17, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Net/LDAP/Message.pm
View
4 lib/Net/LDAP/Message.pm
@@ -255,7 +255,9 @@ sub Net::LDAP::Compare::is_error {
my $self = shift;
my $type = ref($self) || $self;
- $self = bless {}, $type;
+ $self = bless {
+ mesgid => Net::LDAP::Message::NewMesgID(),
+ }, $type;
$self;
}

0 comments on commit bece0e3

Please sign in to comment.