aboutsummaryrefslogtreecommitdiff
path: root/nDPIsrvd.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-01-27 17:53:18 +0100
committerToni Uhlig <matzeton@googlemail.com>2021-01-27 18:05:13 +0100
commit257cce1dccb19190ebcb4c48bac421a21daa4a56 (patch)
tree97de2a779654101691458573d7ed32b5a9cea1ab /nDPIsrvd.c
parent9564b0ce2c239b02235414d908829fff9c684a8c (diff)
Fixed braindead failure - Increase of NETWORK_BUFFER_MAX_SIZE > 9999 means to also increase NETWORK_BUFFER_LENGTH_DIGITS to 5.
* Fixed ARM32 xcompile warnings; Other GCC versions, other uint64_t's.. * Replaced ridiculous nDPIsrvd_JSON_BYTES with NETWORK_BUFFER_LENGTH_DIGITS. Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'nDPIsrvd.c')
-rw-r--r--nDPIsrvd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nDPIsrvd.c b/nDPIsrvd.c
index 379cfc20a..d9d3e3777 100644
--- a/nDPIsrvd.c
+++ b/nDPIsrvd.c
@@ -575,13 +575,13 @@ int main(int argc, char ** argv)
current->buf.used += bytes_read;
}
- while (current->buf.used >= nDPIsrvd_JSON_BYTES + 1)
+ while (current->buf.used >= NETWORK_BUFFER_LENGTH_DIGITS + 1)
{
- if (current->buf.ptr[nDPIsrvd_JSON_BYTES] != '{')
+ if (current->buf.ptr[NETWORK_BUFFER_LENGTH_DIGITS] != '{')
{
syslog(LOG_DAEMON | LOG_ERR,
"BUG: JSON invalid opening character: '%c'",
- current->buf.ptr[nDPIsrvd_JSON_BYTES]);
+ current->buf.ptr[NETWORK_BUFFER_LENGTH_DIGITS]);
disconnect_client(epollfd, current);
break;
}
@@ -601,7 +601,7 @@ int main(int argc, char ** argv)
{
syslog(LOG_DAEMON | LOG_ERR,
"BUG: Missing size before JSON string: \"%.*s\"",
- nDPIsrvd_JSON_BYTES,
+ NETWORK_BUFFER_LENGTH_DIGITS,
current->buf.ptr);
disconnect_client(epollfd, current);
break;