]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
don't free string returned by login_getcapstr(3)
authorDamien Miller <djm@mindrot.org>
Wed, 17 Feb 2021 23:33:58 +0000 (10:33 +1100)
committerDamien Miller <djm@mindrot.org>
Wed, 17 Feb 2021 23:36:54 +0000 (10:36 +1100)
commitf060c2bc85d59d111fa18a12eb3872ee4b9f7e97
tree19d19e9158b517b300a4c02bde69e6cc1a8cccaa
parentbc9b0c25703215501da28aa7a6539f96c0fa656f
don't free string returned by login_getcapstr(3)

OpenBSD and NetBSD require the caller to free strings returned
bu the login_* functions, but FreeBSD requires that callers don't.

Fortunately in this case, we can harmlessly leak as the process is
about to exec the shell/command.

From https://reviews.freebsd.org/D28617 via Ed Maste; ok dtucker@
session.c