Explorar o código

修复TFTP客户端push文件失败

yangpeng %!s(int64=2) %!d(string=hai) anos
pai
achega
7e490f5064
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tftp/tftp_client.c

+ 1 - 1
tftp/tftp_client.c

@@ -152,7 +152,7 @@ int tftp_client_push(struct tftp_client *client, const char *local_name, const c
         return res;
     }
     /* Open file */
-    fp = tftp_file_open(local_name, _private->xfer->mode, 1);
+    fp = tftp_file_open(local_name, _private->xfer->mode, 0);
     if (fp == NULL)
     {
         tftp_printf("open file \"%s\" error.\n", local_name);