Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
ntpsec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
NTPsec
ntpsec
Commits
acb2ecdc
Commit
acb2ecdc
authored
6 years ago
by
Gary E. Miller
Browse files
Options
Downloads
Patches
Plain Diff
ntp_control: Stop potentially dereferencing a NULL pointer.
parent
ed899129
No related branches found
No related tags found
No related merge requests found
Pipeline
#33919706
passed
6 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ntpd/ntp_control.c
+4
-0
4 additions, 0 deletions
ntpd/ntp_control.c
with
4 additions
and
0 deletions
ntpd/ntp_control.c
+
4
−
0
View file @
acb2ecdc
...
...
@@ -2892,6 +2892,7 @@ write_variables(
const
struct
ctl_var
*
v
;
int
ext_var
;
char
*
valuep
;
char
nulltxt
[
1
]
=
{
'\0'
};
long
val
;
size_t
octets
;
char
*
vareqv
;
...
...
@@ -2936,6 +2937,9 @@ write_variables(
ctl_error
(
CERR_PERMISSION
);
return
;
}
if
(
NULL
==
valuep
)
valuep
=
nulltxt
;
errno
=
0
;
if
(
!
ext_var
&&
(
*
valuep
==
'\0'
||
...
...
This diff is collapsed.
Click to expand it.
Gary E. Miller
@garyedmundsmiller
mentioned in issue
#509 (closed)
·
6 years ago
mentioned in issue
#509 (closed)
mentioned in issue #509
Toggle commit list
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment