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
sds
ssg
Commits
14179ae0
Commit
14179ae0
authored
Aug 10, 2016
by
Jonathan Jenkins
Browse files
prevent null ptr deref on bad file argument
parent
e2dc6ae6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ssg.c
View file @
14179ae0
...
...
@@ -129,7 +129,7 @@ fini:
free
(
rdbuf
);
free
(
addr_strs
);
free
(
buf
);
if
(
s
->
addrs
==
NULL
)
{
free
(
s
);
s
=
NULL
;
}
if
(
s
!=
NULL
&&
s
->
addrs
==
NULL
)
{
free
(
s
);
s
=
NULL
;
}
return
s
;
}
...
...
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