ALT Linux Bugzilla
– Attachment 5194 Details for
Bug 26554
Segmentation fault when running xl2tpd-control without arguments
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Fix SEGFAULT in strncmp()
xl2tpd-control.patch (text/plain), 383 bytes, created by
Nikolay A. Fetisov
on 2011-11-04 15:07:34 MSK
(
hide
)
Description:
Fix SEGFAULT in strncmp()
Filename:
MIME Type:
Creator:
Nikolay A. Fetisov
Created:
2011-11-04 15:07:34 MSK
Size:
383 bytes
patch
obsolete
>Fix SEGFAULT in strncmp() when running xl2tpd-control without arguments > >--- xl2tpd-control.c >+++ xl2tpd-control.c >@@ -96,7 +96,7 @@ int main (int argc, char *argv[]) > struct command_t* command = NULL; > int i; /* argv iterator */ > >- if (!strncmp (argv[1], "--help", 6)) >+ if ((argc>1) && !strncmp (argv[1], "--help", 6)) > { > help(); > return 0;
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 26554
: 5194