summaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-29 22:26:21 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-29 22:26:21 +0100
commite871f8368c8a1f0867f68f656875e4c37c26f298 (patch)
treec2aa6a2b40213d695e8f047a51695563f44d74b8 /src/fs
parentf8bccfbb602bdbed4bcc00fd3c6c3a00add82416 (diff)
finish (?) libgnunetatstransport for now
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 @@
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -965,15 +965,9 @@ static int
check_client_index_start (void *cls,
const struct IndexStartMessage *ism)
{
- uint16_t msize;
char *fn;
- msize = ntohs (ism->header.size);
- if (((const char *) ism)[msize - 1] != '\0')
- {
- GNUNET_break (0);
- return GNUNET_SYSERR;
- }
+ GNUNET_MQ_check_zero_termination (ism);
if (0 != ism->reserved)
{
GNUNET_break (0);