From 82c9dd49e981943c3c9af192b3023b141efc6f6b Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 8 May 2013 17:10:10 +0200 Subject: Push an error on the error stack when returning !RSE_OK. --- lib/packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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) -- cgit v1.1