diff options
author | Linus Nordberg <linus@nordu.net> | 2010-10-10 16:00:11 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2010-10-10 16:00:11 +0200 |
commit | 391369cb26363980cbe37d30c41d48a03dd46ef5 (patch) | |
tree | e73a491a7572278078610a121aa38dd96200fe31 | |
parent | 735f0808c02e705e7649c58471d36ca367c50017 (diff) |
Compile again after bad fixes.
-rw-r--r-- | lib/packet.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/packet.c b/lib/packet.c index 6b95b73..6f2088d 100644 --- a/lib/packet.c +++ b/lib/packet.c @@ -46,10 +46,10 @@ _do_send (struct rs_packet *pkt) int err; if (rad_encode (pkt->rpkt, NULL, pkt->conn->active_peer->secret)) - return rs_err_conn_push_fl (pkg->conn, RSE_FR, __FILE__, __LINE__, + return rs_err_conn_push_fl (pkt->conn, RSE_FR, __FILE__, __LINE__, "rad_encode: %s", fr_strerror ()); if (rad_sign (pkt->rpkt, NULL, pkt->conn->active_peer->secret)) - return rs_err_conn_push_fl (pkg->conn, RSE_FR, __FILE__, __LINE__, + return rs_err_conn_push_fl (pkt->conn, RSE_FR, __FILE__, __LINE__, "rad_sign: %s", fr_strerror ()); assert (pkt->rpkt); #if defined (DEBUG) @@ -98,9 +98,8 @@ _event_cb (struct bufferevent *bev, short events, void *ctx) #if defined (DEBUG) fprintf (stderr, "%s: connected\n", __func__); #endif - err = _do_send (pkt); - if (err) - return err; + if (_do_send (pkt)) + return; if (conn->callbacks.sent_cb) conn->callbacks.sent_cb (conn->user_data); /* Packet will be freed in write callback. */ |