1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #11786 from miri64/gnrc_tftp/fix/set-dst-port-on-server-init

gnrc_tftp: set port on server init
This commit is contained in:
Kevin "Bear Puncher" Weiss 2019-07-04 08:49:31 +02:00 committed by GitHub
commit 6176878153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -412,6 +412,7 @@ int gnrc_tftp_server(tftp_data_cb_t data_cb, tftp_start_cb_t start_cb, tftp_stop
/* context will be initialized when a connection is established */
tftp_context_t ctxt = {
.dst_port = GNRC_TFTP_DEFAULT_DST_PORT,
.src_port = GNRC_TFTP_DEFAULT_DST_PORT,
.data_cb = data_cb,
.start_cb = start_cb,