diff options
Diffstat (limited to 'libmailutils/url/set-service.c')
-rw-r--r-- | libmailutils/url/set-service.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libmailutils/url/set-service.c b/libmailutils/url/set-service.c index 4324c4e47..6233d3a7b 100644 --- a/libmailutils/url/set-service.c +++ b/libmailutils/url/set-service.c @@ -1,5 +1,5 @@ /* GNU Mailutils -- a suite of utilities for electronic mail - Copyright (C) 2010-2019 Free Software Foundation, Inc. + Copyright (C) 2010-2024 Free Software Foundation, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -58,7 +58,8 @@ mu_url_set_service (mu_url_t url, const char *str) } else if (n > USHRT_MAX) return ERANGE; - + else + port = n; copy = strdup (str); if (!copy) return ENOMEM; |