Bugzilla – Attachment 2481 Details for
Bug 2281
sshd accepts empty arguments in ForceCommand and VersionAddendum
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
check for empty arguments in VersionAddendum and ForceCommand
file_2281.txt (text/plain), 882 bytes, created by
Petr Lautrbach
on 2014-09-25 00:46:28 AEST
(
hide
)
Description:
check for empty arguments in VersionAddendum and ForceCommand
Filename:
MIME Type:
Creator:
Petr Lautrbach
Created:
2014-09-25 00:46:28 AEST
Size:
882 bytes
patch
obsolete
>diff --git a/servconf.c b/servconf.c >index b7f3294..02cb712 100644 >--- a/servconf.c >+++ b/servconf.c >@@ -1550,7 +1550,7 @@ process_server_config_line(ServerOptions *options, char *line, > break; > > case sForceCommand: >- if (cp == NULL) >+ if (cp == NULL || *cp == '\0') > fatal("%.200s line %d: Missing argument.", filename, > linenum); > len = strspn(cp, WHITESPACE); >@@ -1595,7 +1595,7 @@ process_server_config_line(ServerOptions *options, char *line, > break; > > case sVersionAddendum: >- if (cp == NULL) >+ if (cp == NULL || *cp == '\0') > fatal("%.200s line %d: Missing argument.", filename, > linenum); > len = strspn(cp, WHITESPACE);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
djm
:
ok+
Actions:
View
Attachments on
bug 2281
: 2481