summaryrefslogtreecommitdiffstats
path: root/servconf.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2024-08-17 10:23:04 +0200
committerDamien Miller <djm@mindrot.org>2024-08-17 10:24:00 +0200
commit127a50f2c80572ed1a021feb11ecf941e92cbbef (patch)
tree5a7d6c6f520b0058ea187f3ffa4afac775c27564 /servconf.c
parentupstream: fix swapping of source and destination addresses in some sshd (diff)
downloadopenssh-127a50f2c80572ed1a021feb11ecf941e92cbbef.tar.xz
openssh-127a50f2c80572ed1a021feb11ecf941e92cbbef.zip
upstream: fix minor memory leak in Subsystem option parsing; from
Antonio Larrosa via GHPR515 OpenBSD-Commit-ID: fff3bbefd1b2c45c98cbe45c6b857b15d8a2d364
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/servconf.c b/servconf.c
index 5a20d6f80..61d29f5d1 100644
--- a/servconf.c
+++ b/servconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: servconf.c,v 1.412 2024/07/25 23:44:01 djm Exp $ */
+/* $OpenBSD: servconf.c,v 1.413 2024/08/17 08:23:04 djm Exp $ */
/*
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
@@ -1933,6 +1933,7 @@ process_server_config_line_depth(ServerOptions *options, char *line,
xasprintf(&options->subsystem_args[options->num_subsystems],
"%s%s%s", arg, *arg2 == '\0' ? "" : " ", arg2);
free(arg2);
+ free(arg);
argv_consume(&ac);
options->num_subsystems++;
break;