MINOR: tools: make str2sa_range() return the port in a separate argument

This will be needed so that we're don't have to extract it from the
returned address where it will not always be anymore (eg: for unresolved
servers).
diff --git a/src/standard.c b/src/standard.c
index 02a183b..468b15b 100644
--- a/src/standard.c
+++ b/src/standard.c
@@ -816,7 +816,7 @@
  * When a file descriptor is passed, its value is put into the s_addr part of
  * the address when cast to sockaddr_in and the address family is AF_UNSPEC.
  */
-struct sockaddr_storage *str2sa_range(const char *str, int *low, int *high, char **err, const char *pfx, char **fqdn, int resolve)
+struct sockaddr_storage *str2sa_range(const char *str, int *port, int *low, int *high, char **err, const char *pfx, char **fqdn, int resolve)
 {
 	static struct sockaddr_storage ss;
 	struct sockaddr_storage *ret = NULL;
@@ -983,6 +983,8 @@
 
 	ret = &ss;
  out:
+	if (port)
+		*port = porta;
 	if (low)
 		*low = portl;
 	if (high)