about summary refs log tree commit
path: root/Net/Cmd.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Net/Cmd.pm')
-rw-r--r--Net/Cmd.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Net/Cmd.pm b/Net/Cmd.pm
index 38ff3a7..2167508 100644
--- a/Net/Cmd.pm
+++ b/Net/Cmd.pm
@@ -13,7 +13,7 @@ use strict;
 use vars qw(@ISA @EXPORT $VERSION);
 use Carp;
 
-$VERSION = "2.10";
+$VERSION = "2.11";
 @ISA     = qw(Exporter);
 @EXPORT  = qw(CMD_INFO CMD_OK CMD_MORE CMD_REJECT CMD_ERROR CMD_PENDING);
 
@@ -314,7 +314,7 @@ sub read_until_dot
 
  while(1)
   {
-   my $str = $cmd->getline();
+   my $str = $cmd->getline() or return undef;
 
    $cmd->debug_print(0,$str)
      if ($cmd->debug & 4);