Commit 8039b7c1 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Fixed receiving empty SigComp message.

darcs-hash:20050908183627-65a35-cac4dc051892ffcb7199ad493808e835ee75f58c.gz
parent d38fd395
...@@ -3565,6 +3565,13 @@ static int tport_recv_sigcomp_r(tport_t *self, ...@@ -3565,6 +3565,13 @@ static int tport_recv_sigcomp_r(tport_t *self,
sigcomp_udvm_reject(udvm); /* Reject empty message */ sigcomp_udvm_reject(udvm); /* Reject empty message */
} }
} }
else {
SU_DEBUG_5(("%s(%p): sigcomp recv = %u => %u %s\n", __func__, self,
N, dlen, eos ? " (complete)" : ""));
if (complete || !tport_is_stream(self)) {
sigcomp_udvm_reject(udvm); /* Reject empty message */
}
}
if (self->tp_pri->pri_socktype == SOCK_STREAM) { if (self->tp_pri->pri_socktype == SOCK_STREAM) {
if (eos) if (eos)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment