diff options
author | Luke Howard <lukeh@padl.com> | 2011-11-14 17:05:17 +1100 |
---|---|---|
committer | Luke Howard <lukeh@padl.com> | 2011-11-14 17:05:17 +1100 |
commit | 34747348ee53e02bb6faa6a6e26c1440e327ff60 (patch) | |
tree | 94991d0c105a5516ddc4ef446b36b0d7238da44c /lib/tests/test-udp.c | |
parent | ac17a556bd50969c8157d50761449b702afa4af8 (diff) |
remove rs_packet_frpkt
Diffstat (limited to 'lib/tests/test-udp.c')
-rw-r--r-- | lib/tests/test-udp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tests/test-udp.c b/lib/tests/test-udp.c index e51531c..f66eebd 100644 --- a/lib/tests/test-udp.c +++ b/lib/tests/test-udp.c @@ -1,6 +1,5 @@ #include <stdlib.h> #include <cgreen/cgreen.h> -#include <freeradius/libradius.h> #include "radsec/radsec.h" #include "radsec/request.h" #include "udp.h" @@ -19,7 +18,7 @@ authenticate (struct rs_connection *conn, const char *user, const char *pw) rs_request_add_reqpkt (req, msg); assert_true (rs_request_send (req, &resp) == 0); //printf ("%s\n", rs_err_msg (rs_err_conn_pop (conn), 1)); - assert_true (rs_packet_frpkt (resp)->code == PW_ACCESS_ACCEPT); + assert_true (rs_packet_code(resp) == PW_ACCESS_ACCEPT); rs_request_destroy (req); } |