rcolebaugh / rpms / openssh

Forked from rpms/openssh 2 years ago
Clone
Petr Šabata 81d24c
diff -up openssh/servconf.c.sshdt openssh/servconf.c
Petr Šabata 81d24c
--- openssh/servconf.c.sshdt	2015-06-24 11:42:29.041078704 +0200
Petr Šabata 81d24c
+++ openssh/servconf.c	2015-06-24 11:44:39.734745802 +0200
Petr Šabata 81d24c
@@ -2317,7 +2317,7 @@ dump_config(ServerOptions *o)
Petr Šabata 81d24c
 	dump_cfg_string(sXAuthLocation, o->xauth_location);
Petr Šabata 81d24c
 	dump_cfg_string(sCiphers, o->ciphers);
Petr Šabata 81d24c
 	dump_cfg_string(sMacs, o->macs);
Petr Šabata 81d24c
-	dump_cfg_string(sBanner, o->banner);
Petr Šabata 81d24c
+	dump_cfg_string(sBanner, o->banner != NULL ? o->banner : "none");
Petr Šabata 81d24c
 	dump_cfg_string(sForceCommand, o->adm_forced_command);
Petr Šabata 81d24c
 	dump_cfg_string(sChrootDirectory, o->chroot_directory);
Petr Šabata 81d24c
 	dump_cfg_string(sTrustedUserCAKeys, o->trusted_user_ca_keys);