Commit 3e239111 3e239111af0d118f5acd4477a069599135e090f3 by Sergey Poznyakoff

(mu_rfc2047_encode): Return EINVAL if any of

the arguments is NULL.
1 parent 4a1df226
......@@ -231,7 +231,7 @@ mu_rfc2047_encode (const char *charset, const char *encoding,
int rc;
if (charset == NULL || encoding == NULL || text == NULL)
return MU_ERR_BAD_2047_INPUT;
return EINVAL;
if (strcmp (encoding, "base64") == 0)
encoding = "B";
......