aboutsummaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/gnunet-service-fs.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c
index fea22f279..04d483847 100644
--- a/src/fs/gnunet-service-fs.c
+++ b/src/fs/gnunet-service-fs.c
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/ 17*/
@@ -965,15 +965,9 @@ static int
965check_client_index_start (void *cls, 965check_client_index_start (void *cls,
966 const struct IndexStartMessage *ism) 966 const struct IndexStartMessage *ism)
967{ 967{
968 uint16_t msize;
969 char *fn; 968 char *fn;
970 969
971 msize = ntohs (ism->header.size); 970 GNUNET_MQ_check_zero_termination (ism);
972 if (((const char *) ism)[msize - 1] != '\0')
973 {
974 GNUNET_break (0);
975 return GNUNET_SYSERR;
976 }
977 if (0 != ism->reserved) 971 if (0 != ism->reserved)
978 { 972 {
979 GNUNET_break (0); 973 GNUNET_break (0);