Bug in MQX 4.1.1. ftpsrv_size

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Bug in MQX 4.1.1. ftpsrv_size

784件の閲覧回数
CorderBollie
Contributor II

Hello. I found a bug in function ftpsrv_size (MQX 4.1.1) around line 443..449

   fp = fopen(full_path,"r");

    _mem_free(full_path);

    if (fp == NULL)

    {

        ftpsrv_send_msg(session, ftpsrvmsg_no_file);

        return(FTPSRV_ERROR);

    }

should be

   fp = fopen(full_path,"r");

    _mem_free(full_path);

    if (fp == NULL)

    {

        session->message = (char*) ftpsrvmsg_no_file;

        return(FTPSRV_ERROR);

    }

Without that change the ftp server sends a wrong response to the client if the file does not exist.

ラベル(1)
0 件の賞賛
返信
1 返信

682件の閲覧回数
karelm_
Contributor IV

Hi,

thank you for your report. I will fix this bug on our development branch so it is propagated into next MQX release.

Best regards,

Karel

0 件の賞賛
返信