summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-05-08 17:10:10 +0200
committerLinus Nordberg <linus@nordberg.se>2013-05-08 17:10:10 +0200
commit82c9dd49e981943c3c9af192b3023b141efc6f6b (patch)
treecca060411f524e8bfbb6826210d19b556ffd494c /lib
parentf71f1bdd87e58fb6fb5abc90a1b2119a4f35f1b3 (diff)
Push an error on the error stack when returning !RSE_OK.
Diffstat (limited to 'lib')
-rw-r--r--lib/packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/packet.c b/lib/packet.c
index ba7ddb8..8135749 100644
--- a/lib/packet.c
+++ b/lib/packet.c
@@ -211,7 +211,7 @@ rs_packet_append_avp (struct rs_packet *pkt,
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)