summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@dahyabhai.net>2013-12-09 09:29:51 -0500
committerNalin Dahyabhai <nalin@dahyabhai.net>2013-12-09 09:29:51 -0500
commit9b057b0ffface58d694c1745c3a103ecbeb66fd8 (patch)
treed0d1f7f1572fa1b09a5f0707d314965653612a37
parent982a70c7d8688a6ba9bb85faa6a4d2f6e6dca78d (diff)
downloadslapi-nis-9b057b0ffface58d694c1745c3a103ecbeb66fd8.tar.gz
slapi-nis-9b057b0ffface58d694c1745c3a103ecbeb66fd8.tar.xz
slapi-nis-9b057b0ffface58d694c1745c3a103ecbeb66fd8.zip
Accept slightly larger fragments (8K vs 8K - 4)
-rw-r--r--src/disp-nis.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/disp-nis.c b/src/disp-nis.c
index b584765..c80ab94 100644
--- a/src/disp-nis.c
+++ b/src/disp-nis.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2008,2011 Red Hat, Inc.
+ * Copyright 2008,2011,2013 Red Hat, Inc.
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -81,7 +81,7 @@ struct dispatch_client {
client_replying_final,
} client_state;
/* The client's request while we're reading it. */
- char client_inbuf[8192];
+ char client_inbuf[8192 + 4];
ssize_t client_inbuf_used;
char *client_query;
ssize_t client_query_size;
@@ -769,8 +769,8 @@ client_read(struct plugin_state *state, struct dispatch_client *client)
free(client->client_query);
client->client_query = query;
client->client_query_size = nlen;
- /* Drop the fragment from the incoming
- * buffer by moving the rest forward. */
+ /* Drop the fragment from the incoming buffer by
+ * moving the rest of it forward. */
if ((len + 4) < client->client_inbuf_used) {
memmove(client->client_inbuf,
client->client_inbuf + (len + 4),