git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1217 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2006-09-18 21:46:50 +00:00
parent c8d9052e99
commit 4450c35068
1 changed files with 6 additions and 0 deletions

View File

@ -678,6 +678,12 @@ data_decode_from_file(asn_TYPE_descriptor_t *pduType, FILE *file, const char *na
(rval.code == RC_WMORE)
? "Unexpected end of input"
: "Input processing error");
#ifndef ENOMSG
#define ENOMSG EINVAL
#endif
#ifndef EBADMSG
#define EBADMSG EINVAL
#endif
errno = (rval.code == RC_WMORE) ? ENOMSG : EBADMSG;
} else {
/* Got EOF after a few successful PDUs */