Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
key-storage-agent
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Code
key-storage-agent
Compare revisions
master to 13-fix-no-such-key-segfault
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
code/key-storage-agent
Select target project
No results found
13-fix-no-such-key-segfault
Select Git revision
Swap
Target
code/key-storage-agent
Select target project
code/key-storage-agent
1 result
master
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
fix segfault in GetKey when there is nill err object
· 09d73a10
Damyan Mitev
authored
5 years ago
09d73a10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
handler/handler.go
+2
-2
2 additions, 2 deletions
handler/handler.go
with
2 additions
and
2 deletions
handler/handler.go
View file @
09d73a10
...
...
@@ -121,8 +121,8 @@ func (s *KeyStorageServerImpl) GetKey(ctx context.Context, in *api.GetKeyRequest
log
.
Println
(
"No such key "
+
in
.
Uuid
)
getKeyResponse
.
Key
=
nil
getKeyResponse
.
StatusList
=
utils
.
AddStatus
(
getKeyResponse
.
StatusList
,
"500"
,
api
.
StatusType_ERROR
,
err
.
Error
()
)
return
getKeyResponse
,
err
"500"
,
api
.
StatusType_ERROR
,
"No such key "
+
in
.
Uuid
)
return
getKeyResponse
,
err
ors
.
New
(
"No such key "
+
in
.
Uuid
)
}
getKeyResponse
.
Key
=
key
...
...
This diff is collapsed.
Click to expand it.