]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
CDK_EOF error code now returns GNUTLS_E_PARSING_ERROR
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 31 Dec 2011 17:32:30 +0000 (19:32 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 31 Dec 2011 17:32:30 +0000 (19:32 +0200)
lib/openpgp/gnutls_openpgp.c

index 0ceca8faa50399aa31a18caaff386181e6c5f594..d344b1822588340122eed75f46bef6b4125fd4ba 100644 (file)
@@ -44,6 +44,8 @@ _gnutls_map_cdk_rc (int rc)
     {
     case CDK_Success:
       return 0;
+    case CDK_EOF:
+      return GNUTLS_E_PARSING_ERROR;
     case CDK_Too_Short:
       return GNUTLS_E_SHORT_MEMORY_BUFFER;
     case CDK_General_Error: