summaryrefslogtreecommitdiffstats
path: root/src/socket-proxy/socket-proxyd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket-proxy/socket-proxyd.c')
-rw-r--r--src/socket-proxy/socket-proxyd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c
index be0be91f3e..aba483449a 100644
--- a/src/socket-proxy/socket-proxyd.c
+++ b/src/socket-proxy/socket-proxyd.c
@@ -438,7 +438,8 @@ static int resolve_remote(Connection *c) {
service = strrchr(arg_remote_host, ':');
if (service) {
- node = strndupa(arg_remote_host, service - arg_remote_host);
+ node = strndupa_safe(arg_remote_host,
+ service - arg_remote_host);
service++;
} else {
node = arg_remote_host;