lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [lwip-users] Re: Bug in tcp_out.c


From: Dave Perry
Subject: RE: [lwip-users] Re: Bug in tcp_out.c
Date: Mon, 18 Jul 2005 11:05:13 -0400

Thanks, I got the code using the Windows client. I have another little
suggestion. I know you shouldn't call this with buf == NULL, but it can
happen:

Api_lib.c

err_t
netbuf_data(struct netbuf *buf, void **dataptr, u16_t *len)
{

  if (buf == NULL) {// change
    return ERR_BUF;
  }

  if (buf->ptr == NULL) {
    return ERR_BUF;
  }
  *dataptr = buf->ptr->payload;
  *len = buf->ptr->len;
  return ERR_OK;
}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]