summaryrefslogtreecommitdiff
path: root/src/analysis/db
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-02-23 22:56:59 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-02-23 22:56:59 (GMT)
commita5cd2e6519456f49a0f0d9d76dfac0ff89d8bbb1 (patch)
treecc5c0d06836f132ba559eacf4323ce56b67e9d47 /src/analysis/db
parent08f3cc8d6262c9b5412a008c6210e88cd840da85 (diff)
Fixed a bug: do not close the connection after the initial handshake.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@478 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis/db')
-rw-r--r--src/analysis/db/misc/rlestr.c2
-rw-r--r--src/analysis/db/server.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/analysis/db/misc/rlestr.c b/src/analysis/db/misc/rlestr.c
index d75e7ab..631b1e9 100644
--- a/src/analysis/db/misc/rlestr.c
+++ b/src/analysis/db/misc/rlestr.c
@@ -331,7 +331,7 @@ bool send_rle_string(const rle_string *str, int fd, int flags)
{
bool status; /* Bilan d'une opération */
- status = safe_send(fd, (uint32_t []) { htobe32(str->length) }, sizeof(uint32_t), flags);
+ status = safe_send(fd, (uint32_t []) { htobe32(str->length) }, sizeof(uint32_t), MSG_MORE | flags);
if (!status) return false;
if (str->length > 0)
diff --git a/src/analysis/db/server.c b/src/analysis/db/server.c
index 04b0dc4..c51c21e 100644
--- a/src/analysis/db/server.c
+++ b/src/analysis/db/server.c
@@ -390,7 +390,7 @@ static void *g_db_server_listener(GDbServer *server)
if (archive != NULL)
error = g_cdb_archive_add_client(archive, fd, &user);
-
+ continue;
gdsl_error: