* maperror.c (map_to_assuan_status): Map EOF to No_Data_Available.
authorWerner Koch <wk@gnupg.org>
Wed, 26 Jun 2002 12:51:24 +0000 (12:51 +0000)
committerWerner Koch <wk@gnupg.org>
Wed, 26 Jun 2002 12:51:24 +0000 (12:51 +0000)
common/ChangeLog
common/maperror.c

index ac0f0ed..d9964c1 100644 (file)
@@ -1,3 +1,7 @@
+2002-06-26  Werner Koch  <wk@gnupg.org>
+
+       * maperror.c (map_to_assuan_status): Map EOF to No_Data_Available.
+
 2002-06-10  Werner Koch  <wk@gnupg.org>
 
        * errors.h (gnupg_error_token): Add new prototype.
index 0b4cc0a..c982965 100644 (file)
@@ -196,6 +196,9 @@ map_to_assuan_status (int rc)
 {
   switch (rc)
     {
+    case -1:
+      rc = ASSUAN_No_Data_Available;
+      break;
     case 0: break;
     case GNUPG_Bad_CA_Certificate: 
     case GNUPG_Bad_Certificate: