Return ENOENT if the url type wasn't registered, like the other factory
creation functions.
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -101,6 +101,8 @@ mailer_create (mailer_t *pmailer, const char *name) | ... | @@ -101,6 +101,8 @@ mailer_create (mailer_t *pmailer, const char *name) |
101 | else | 101 | else |
102 | *pmailer = mailer; | 102 | *pmailer = mailer; |
103 | } | 103 | } |
104 | else | ||
105 | status = ENOENT; | ||
104 | 106 | ||
105 | return status; | 107 | return status; |
106 | } | 108 | } | ... | ... |
-
Please register or sign in to post a comment