summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-03-03 14:02:40 +0100
committerLinus Nordberg <linus@nordu.net>2011-03-03 14:02:40 +0100
commitb01fafad7778040ec98619653328deecc1ef1ab1 (patch)
treee2d4a9fe3e626cb15de89cf0f4eb95ff6130b4c7
parent714fa685ee2f704a9d1945a7b0b1fa73bfe6ff55 (diff)
Correct an error code.
-rw-r--r--lib/packet.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/packet.c b/lib/packet.c
index ea1a07f..2ef7e45 100644
--- a/lib/packet.c
+++ b/lib/packet.c
@@ -46,9 +46,11 @@ _do_send (struct rs_packet *pkt)
assert (pkt->rpkt);
assert (!pkt->original);
+ /* Add Message-Authenticator, RFC 2869. */
+ /* FIXME: Make Message-Authenticator optional? */
vp = paircreate (PW_MESSAGE_AUTHENTICATOR, PW_TYPE_OCTETS);
if (!vp)
- return rs_err_conn_push_fl (pkt->conn, RSE_NOMEM, __FILE__, __LINE__,
+ return rs_err_conn_push_fl (pkt->conn, RSE_FR, __FILE__, __LINE__,
"paircreate: %s", fr_strerror ());
pairadd (&pkt->rpkt->vps, vp);