summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nx_secure/src/nxe_secure_tls_session_send.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/nx_secure/src/nxe_secure_tls_session_send.c b/nx_secure/src/nxe_secure_tls_session_send.c
index 09e9281c..85ad1726 100644
--- a/nx_secure/src/nxe_secure_tls_session_send.c
+++ b/nx_secure/src/nxe_secure_tls_session_send.c
@@ -91,16 +91,6 @@ UINT status;
return(NX_PTR_ERROR);
}
- if (packet_ptr -> nx_packet_length == 0)
- {
- /* Must check for empty packets here, as TLS data will make a packet's contents
- non-empty. _nx_tcp_socket_send_internal has a check for an empty packet
- that correctly works in an HTTP session but will result in a false negative if
- the session is HTTPS. Thus, this check is performed before the TLS session
- operations that modify the packet. */
- return(NX_INVALID_PACKET);
- }
-
if (tls_session -> nx_secure_tls_tcp_socket == NX_NULL)
{
return(NX_SECURE_TLS_SESSION_UNINITIALIZED);
@@ -121,6 +111,16 @@ UINT status;
/* Check for appropriate caller. */
NX_THREADS_ONLY_CALLER_CHECKING
+ if (packet_ptr -> nx_packet_length == 0)
+ {
+ /* Must check for empty packets here, as TLS data will make a packet's contents
+ non-empty. _nx_tcp_socket_send_internal has a check for an empty packet
+ that correctly works in an HTTP session but will result in a false negative if
+ the session is HTTPS. Thus, this check is performed before the TLS session
+ operations that modify the packet. */
+ return(NX_INVALID_PACKET);
+ }
+
status = _nx_secure_tls_session_send(tls_session, packet_ptr, wait_option);
/* Return completion status. */