projects
/
moonshot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c219ba
)
fallback to paircreate() if dictionary lookup fails
author
Luke Howard
<lukeh@padl.com>
Thu, 10 Mar 2011 06:34:04 +0000
(17:34 +1100)
committer
Luke Howard
<lukeh@padl.com>
Thu, 10 Mar 2011 06:34:04 +0000
(17:34 +1100)
mech_eap/util_radius.cpp
patch
|
blob
|
history
diff --git
a/mech_eap/util_radius.cpp
b/mech_eap/util_radius.cpp
index
fb62c43
..
51958aa
100644
(file)
--- a/
mech_eap/util_radius.cpp
+++ b/
mech_eap/util_radius.cpp
@@
-672,10
+672,11
@@
avpImport(VALUE_PAIR **pVp,
remain -= 4;
da = dict_attrbyvalue(attrid);
- if (da == NULL)
- goto fail;
-
- vp = pairalloc(da);
+ if (da != NULL) {
+ vp = pairalloc(da);
+ } else {
+ vp = paircreate(attrid, PW_TYPE_STRING);
+ }
if (vp == NULL) {
throw new std::bad_alloc;
goto fail;