projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43f3f03
)
Fix spurious soft asserts Fixes #706
author
Arran Cudbard-Bell
<a.cudbardb@freeradius.org>
Wed, 25 Jun 2014 10:56:51 +0000
(11:56 +0100)
committer
Arran Cudbard-Bell
<a.cudbardb@freeradius.org>
Wed, 25 Jun 2014 10:59:23 +0000
(11:59 +0100)
src/lib/valuepair.c
patch
|
blob
|
history
diff --git
a/src/lib/valuepair.c
b/src/lib/valuepair.c
index
6ecd30f
..
93ba8f8
100644
(file)
--- a/
src/lib/valuepair.c
+++ b/
src/lib/valuepair.c
@@
-232,6
+232,9
@@
VALUE_PAIR *pairfind(VALUE_PAIR *vp, unsigned int attr, unsigned int vendor, int
vp_cursor_t cursor;
VALUE_PAIR *i;
+ /* List head may be NULL if it contains no VPs */
+ if (!vp) return NULL;
+
VERIFY_LIST(vp);
for (i = fr_cursor_init(&cursor, &vp);