mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:33:03 +00:00
Avoid sending empty header after synchronizing
SVN revision: 2248
This commit is contained in:
parent
b18e6b406c
commit
aeab8c87a6
@ -27425,6 +27425,9 @@ void send_return(int _sock, const char *net_buffer)
|
|||||||
if (return_length == 0)
|
if (return_length == 0)
|
||||||
return_length = strlen_retbuf;
|
return_length = strlen_retbuf;
|
||||||
|
|
||||||
|
if (return_length == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
if (_logging_level > 3) {
|
if (_logging_level > 3) {
|
||||||
strlcpy(str, net_buffer, sizeof(str));
|
strlcpy(str, net_buffer, sizeof(str));
|
||||||
sprintf(str, "Return %d bytes", return_length);
|
sprintf(str, "Return %d bytes", return_length);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user