bmh10 / rpms / openssh

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