ssh: apply style(9) to version_addendum

Reported by:	allanjude (in review D29953)
Fixes:		462c32cb8d ("Upgrade OpenSSH to 6.1p1.")
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2022-04-18 17:20:25 -04:00
parent b13ac67842
commit 613b4b7971
2 changed files with 3 additions and 2 deletions

View file

@ -873,7 +873,7 @@ main(int ac, char **av)
}
break;
case 'V':
if (options.version_addendum &&
if (options.version_addendum != NULL &&
*options.version_addendum != '\0')
fprintf(stderr, "%s %s, %s\n", SSH_RELEASE,
options.version_addendum,

View file

@ -920,7 +920,8 @@ drop_connection(int sock, int startups, int notify_pipe)
static void
usage(void)
{
if (options.version_addendum && *options.version_addendum != '\0')
if (options.version_addendum != NULL &&
*options.version_addendum != '\0')
fprintf(stderr, "%s %s, %s\n",
SSH_RELEASE,
options.version_addendum, OPENSSL_VERSION_STRING);