Without this, clients that queried the size would receive 0 as response.
ok jca@
-/* $OpenBSD: tftpd.c,v 1.40 2017/11/07 14:15:38 jca Exp $ */
+/* $OpenBSD: tftpd.c,v 1.41 2018/01/26 16:40:14 naddy Exp $ */
/*
* Copyright (c) 2012 David Gwynne <dlg@uq.edu.au>
buf = client->buf + sizeof(client->buf) - 512;
arc4random_buf(buf, 512);
+ if (options != NULL && options[OPT_TSIZE].o_request)
+ options[OPT_TSIZE].o_reply = 512;
client->file = fmemopen(buf, 512, "r");
if (client->file == NULL)
return (errno + 100);