(mu_rfc2822_references,mu_rfc2822_in_reply_to): Return MU_ERR_FAILURE on error.
Showing
1 changed file
with
5 additions
and
2 deletions
... | @@ -41,6 +41,7 @@ | ... | @@ -41,6 +41,7 @@ |
41 | 41 | ||
42 | #include <mailutils/address.h> | 42 | #include <mailutils/address.h> |
43 | #include <mailutils/error.h> | 43 | #include <mailutils/error.h> |
44 | #include <mailutils/errno.h> | ||
44 | #include <mailutils/iterator.h> | 45 | #include <mailutils/iterator.h> |
45 | #include <mailutils/mutil.h> | 46 | #include <mailutils/mutil.h> |
46 | #include <mailutils/parse822.h> | 47 | #include <mailutils/parse822.h> |
... | @@ -946,8 +947,9 @@ mu_rfc2822_references (message_t msg, char **pstr) | ... | @@ -946,8 +947,9 @@ mu_rfc2822_references (message_t msg, char **pstr) |
946 | *pstr = concat (ref, msgid); | 947 | *pstr = concat (ref, msgid); |
947 | free (ref); | 948 | free (ref); |
948 | free (msgid); | 949 | free (msgid); |
949 | } | ||
950 | return 0; | 950 | return 0; |
951 | } | ||
952 | return MU_ERR_FAILURE; | ||
951 | } | 953 | } |
952 | 954 | ||
953 | #define DATEBUFSIZE 128 | 955 | #define DATEBUFSIZE 128 |
... | @@ -1013,6 +1015,7 @@ mu_rfc2822_in_reply_to (message_t msg, char **pstr) | ... | @@ -1013,6 +1015,7 @@ mu_rfc2822_in_reply_to (message_t msg, char **pstr) |
1013 | *pstr = concat (s1, s2); | 1015 | *pstr = concat (s1, s2); |
1014 | free (s1); | 1016 | free (s1); |
1015 | free (s2); | 1017 | free (s2); |
1016 | } | ||
1017 | return 0; | 1018 | return 0; |
1019 | } | ||
1020 | return MU_ERR_FAILURE; | ||
1018 | } | 1021 | } | ... | ... |
-
Please register or sign in to post a comment