Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Commits
edc2f92a
Commit
edc2f92a
authored
4 years ago
by
Manuel Kieweg
Browse files
Options
Downloads
Patches
Plain Diff
fix security issues
parent
c926f8a4
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!143
Investigate Security Issues
Pipeline
#68246
passed
4 years ago
Stage: .pre
Stage: test
Stage: build
Stage: apply
Stage: integration-test
Stage: .post
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
forks/goarista/gnmi/client.go
+3
-1
3 additions, 1 deletion
forks/goarista/gnmi/client.go
nucleus/util/proto/message.go
+1
-1
1 addition, 1 deletion
nucleus/util/proto/message.go
with
4 additions
and
2 deletions
forks/goarista/gnmi/client.go
+
3
−
1
View file @
edc2f92a
...
@@ -117,7 +117,9 @@ func DialContext(ctx context.Context, cfg *Config) (pb.GNMIClient, error) {
...
@@ -117,7 +117,9 @@ func DialContext(ctx context.Context, cfg *Config) (pb.GNMIClient, error) {
}
}
if
cfg
.
TLS
||
cfg
.
CAFile
!=
""
||
cfg
.
CertFile
!=
""
||
cfg
.
Token
!=
""
{
if
cfg
.
TLS
||
cfg
.
CAFile
!=
""
||
cfg
.
CertFile
!=
""
||
cfg
.
Token
!=
""
{
tlsConfig
:=
&
tls
.
Config
{}
tlsConfig
:=
&
tls
.
Config
{
MinVersion
:
tls
.
VersionTLS12
,
}
if
cfg
.
CAFile
!=
""
{
if
cfg
.
CAFile
!=
""
{
b
,
err
:=
ioutil
.
ReadFile
(
cfg
.
CAFile
)
b
,
err
:=
ioutil
.
ReadFile
(
cfg
.
CAFile
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
nucleus/util/proto/message.go
+
1
−
1
View file @
edc2f92a
...
@@ -17,7 +17,7 @@ func Write(message proto.Message, filename string) error {
...
@@ -17,7 +17,7 @@ func Write(message proto.Message, filename string) error {
return
fmt
.
Errorf
(
"cannot marshal proto message to binary: %w"
,
err
)
return
fmt
.
Errorf
(
"cannot marshal proto message to binary: %w"
,
err
)
}
}
err
=
ioutil
.
WriteFile
(
filename
,
data
,
06
44
)
err
=
ioutil
.
WriteFile
(
filename
,
data
,
06
00
)
if
err
!=
nil
{
if
err
!=
nil
{
return
fmt
.
Errorf
(
"cannot write binary data to file: %w"
,
err
)
return
fmt
.
Errorf
(
"cannot write binary data to file: %w"
,
err
)
}
}
...
...
This diff is collapsed.
Click to expand it.
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