rcolebaugh / rpms / openssh

Forked from rpms/openssh 2 years ago
Clone
Dmitry Belyavskiy bf1985
diff -up openssh-8.7p1/ssh-keygen.c.find-princ openssh-8.7p1/ssh-keygen.c
Dmitry Belyavskiy bf1985
--- openssh-8.7p1/ssh-keygen.c.find-princ	2021-11-29 15:27:03.032070863 +0100
Dmitry Belyavskiy bf1985
+++ openssh-8.7p1/ssh-keygen.c	2021-11-29 15:27:34.736342968 +0100
Dmitry Belyavskiy bf1985
@@ -2700,7 +2700,8 @@ sig_process_opts(char * const *opts, siz
Dmitry Belyavskiy bf1985
 	time_t now;
Dmitry Belyavskiy bf1985
 
Dmitry Belyavskiy bf1985
 	*verify_timep = 0;
Dmitry Belyavskiy bf1985
-	*print_pubkey = 0;
Dmitry Belyavskiy bf1985
+	if (print_pubkey)
Dmitry Belyavskiy bf1985
+		*print_pubkey = 0;
Dmitry Belyavskiy bf1985
 	for (i = 0; i < nopts; i++) {
Dmitry Belyavskiy bf1985
 		if (strncasecmp(opts[i], "verify-time=", 12) == 0) {
Dmitry Belyavskiy bf1985
 			if (parse_absolute_time(opts[i] + 12,