From 9b057b0ffface58d694c1745c3a103ecbeb66fd8 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Mon, 9 Dec 2013 09:29:51 -0500 Subject: Accept slightly larger fragments (8K vs 8K - 4) --- src/disp-nis.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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), -- cgit