TFTP default blocksize fix from Vampyre
authorMarty Connor <mdc@etherboot.org>
Thu, 30 Aug 2007 17:51:38 +0000 (13:51 -0400)
committerMarty Connor <mdc@etherboot.org>
Thu, 30 Aug 2007 17:51:38 +0000 (13:51 -0400)
src/net/udp/tftp.c

index 7f1c4ce..6c1c51b 100644 (file)
@@ -647,6 +647,7 @@ int tftp_open ( struct xfer_interface *xfer, struct uri *uri ) {
        xfer_init ( &tftp->socket, &tftp_socket_operations, &tftp->refcnt );
        tftp->state = -1;
        tftp->timer.expired = tftp_timer_expired;
+       tftp->blksize = TFTP_DEFAULT_BLKSIZE;
 
        /* Open socket */
        memset ( &server, 0, sizeof ( server ) );