Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-ece
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-ece
Commits
bf138ece
Commit
bf138ece
authored
Sep 16, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More error checking for keys.
parent
b16fbf54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
keys.c
src/keys.c
+5
-0
No files found.
src/keys.c
View file @
bf138ece
...
...
@@ -330,6 +330,8 @@ key_find(struct key_tree *tree_h, uint8_t *id, uint8_t idlen)
if
(
key
!=
NULL
)
{
AN
(
key
->
key
);
AN
(
key
->
id
);
assert
(
key
->
idlen
==
idlen
);
AZ
(
memcmp
(
key
->
id
,
id
,
idlen
));
}
return
(
key
);
}
...
...
@@ -347,6 +349,9 @@ KEY_Get(uint8_t *id, uint8_t idlen)
return
(
NULL
);
CHECK_OBJ
(
key
,
KEY_MAGIC
);
AN
(
key
->
key
);
AN
(
key
->
id
);
assert
(
key
->
idlen
==
idlen
);
AZ
(
memcmp
(
key
->
id
,
id
,
idlen
));
return
(
key
->
key
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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