[En-Nut-Discussion] httpd and forms: New method for POST evaluation

Bernard Fouché bernard.fouche at kuantic.com
Wed Sep 7 19:00:20 CEST 2005


Bernard Fouché wrote:

>
>    if (req->req_method == METHOD_POST) {
>      req->req_query = NutHeapAllocClear(req->req_length+1);
>      if (req->req_query == NULL) {
>    /* Out of memory */
>    NutHeapFree(req->req_query);      return FALSE;

Oups, I recopied that statement, sorry ;-) It should be of course:

if(req->req_query==NULL)
    return FALSE;

  Bernard



More information about the En-Nut-Discussion mailing list