Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
asmadeus
l2tpns
Commits
4d906e59
Commit
4d906e59
authored
Nov 03, 2022
by
sthibaul
Browse files
Fix liveness of buf
So that domain can point to it.
parent
6df96f81
Changes
1
Hide whitespace changes
Inline
Side-by-side
l2tpns.c
View file @
4d906e59
...
...
@@ -4520,12 +4520,12 @@ static void stripdomain(char *host)
{
char
*
domain
=
0
;
char
_domain
[
1024
];
char
buf
[
1024
];
// strip off domain
FILE
*
resolv
=
fopen
(
"/etc/resolv.conf"
,
"r"
);
if
(
resolv
)
{
char
buf
[
1024
];
char
*
b
;
while
(
fgets
(
buf
,
sizeof
(
buf
),
resolv
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment