Skip to content

Commit

Permalink
Add VERIFY_REQUEST to send() routines
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Feb 27, 2014
1 parent e36b087 commit 6c16f25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/tls_listen.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,8 @@ int dual_tls_send(rad_listen_t *listener, REQUEST *request)
{
listen_socket_t *sock = listener->data;

VERIFY_REQUEST(request);

rad_assert(request->listener == listener);
rad_assert(listener->send == dual_tls_send);

Expand Down Expand Up @@ -689,6 +691,8 @@ int proxy_tls_send(rad_listen_t *listener, REQUEST *request)
int rcode;
listen_socket_t *sock = listener->data;

VERIFY_REQUEST(request);

if (listener->status != RAD_LISTEN_STATUS_KNOWN) return 0;

/*
Expand Down

0 comments on commit 6c16f25

Please sign in to comment.