X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Futils%2Fos.c;h=2b6a51460a67f89122dbee5ec7d75d70e2b3fe82;hb=6f29ec3901a06ae905c818b882a80f8a0bd7af42;hp=c94e271be545dfe1bf51ec70d34887fc73ff3a19;hpb=92b88ad62cefc6aa9029906eccdbdf8643ec8914;p=sysdb.git diff --git a/src/utils/os.c b/src/utils/os.c index c94e271..2b6a514 100644 --- a/src/utils/os.c +++ b/src/utils/os.c @@ -319,7 +319,7 @@ sdb_resolve(int network, const char *address, struct addrinfo **res) if (address) { host = address; - port = strchr(host, ':'); + port = strrchr(host, ':'); if (port) { *port = '\0'; ++port;