projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5d009d
)
Skip empty requests (this is closer to previous radclient behaviour)
author
Arran Cudbard-Bell
<a.cudbardb@freeradius.org>
Mon, 2 Jun 2014 10:31:03 +0000
(11:31 +0100)
committer
Arran Cudbard-Bell
<a.cudbardb@freeradius.org>
Mon, 2 Jun 2014 10:31:03 +0000
(11:31 +0100)
src/main/radclient.c
patch
|
blob
|
history
diff --git
a/src/main/radclient.c
b/src/main/radclient.c
index
06f8acb
..
86ad151
100644
(file)
--- a/
src/main/radclient.c
+++ b/
src/main/radclient.c
@@
-313,6
+313,14
@@
static int radclient_init(TALLOC_CTX *ctx, rc_file_pair_t *files)
goto error;
}
+ /*
+ * Skip empty entries
+ */
+ if (!request->packet->vps) {
+ talloc_free(request);
+ continue;
+ }
+
fr_cursor_init(&cursor, &request->filter);
vp = fr_cursor_next_by_num(&cursor, PW_PACKET_TYPE, 0, TAG_ANY);
if (vp) {