projects
/
mech_eap.orig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d7132a
)
exception handling-related cleanup
author
Luke Howard
<lukeh@padl.com>
Wed, 30 Mar 2011 04:36:02 +0000
(15:36 +1100)
committer
Luke Howard
<lukeh@padl.com>
Wed, 30 Mar 2011 04:36:02 +0000
(15:36 +1100)
util_radius.cpp
patch
|
blob
|
history
diff --git
a/util_radius.cpp
b/util_radius.cpp
index
d1ee24b
..
5a109fe
100644
(file)
--- a/
util_radius.cpp
+++ b/
util_radius.cpp
@@
-190,7
+190,6
@@
copyAvps(const VALUE_PAIR *src)
if (vpcopy == NULL) {
pairfree(&dst);
throw std::bad_alloc();
- return NULL;
}
*pDst = vpcopy;
pDst = &vpcopy->next;
@@
-673,10
+672,8
@@
jsonToAvp(VALUE_PAIR **pVp, JSONObject &obj)
/* Assume unknown attributes are octet strings */
vp = paircreate(attrid, PW_TYPE_OCTETS);
}
- if (vp == NULL)
{
+ if (vp == NULL)
throw std::bad_alloc();
- goto fail;
- }
switch (vp->type) {
case PW_TYPE_INTEGER: