projects
/
radsecproxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'libradsec-add-avp-2' into libradsec
[radsecproxy.git]
/
lib
/
packet.c
diff --git
a/lib/packet.c
b/lib/packet.c
index
63bf370
..
5daad25
100644
(file)
--- a/
lib/packet.c
+++ b/
lib/packet.c
@@
-1,10
+1,11
@@
-/* Copyright 2010
, 2011
NORDUnet A/S. All rights reserved.
- See LICENSE for licensing information.
*/
+/* Copyright 2010
-2013
NORDUnet A/S. All rights reserved.
+ See LICENSE for licensing information. */
#if defined HAVE_CONFIG_H
#include <config.h>
#endif
#if defined HAVE_CONFIG_H
#include <config.h>
#endif
+#include <stdlib.h>
#include <assert.h>
#include <radius/client.h>
#include <event2/bufferevent.h>
#include <assert.h>
#include <radius/client.h>
#include <event2/bufferevent.h>
@@
-252,7
+253,7
@@
rs_packet_append_avp (struct rs_packet *pkt,
da = nr_dict_attr_byvalue (attr, vendor);
if (da == NULL)
da = nr_dict_attr_byvalue (attr, vendor);
if (da == NULL)
- return
RSE_ATTR_TYPE_UNKNOWN
;
+ return
rs_err_conn_push (pkt->conn, RSE_ATTR_TYPE_UNKNOWN, __func__)
;
err = nr_packet_attr_append (pkt->rpkt, NULL, da, data, data_len);
if (err < 0)
err = nr_packet_attr_append (pkt->rpkt, NULL, da, data, data_len);
if (err < 0)