Lines Matching refs:nbuf
70 unsigned char *nbuf; in wpabuf_resize() local
72 nbuf = os_realloc(buf->buf, buf->used + add_len); in wpabuf_resize()
73 if (nbuf == NULL) in wpabuf_resize()
75 os_memset(nbuf + buf->used, 0, add_len); in wpabuf_resize()
76 buf->buf = nbuf; in wpabuf_resize()
79 nbuf = os_realloc(trace, sizeof(struct wpabuf_trace) + in wpabuf_resize()
82 if (nbuf == NULL) in wpabuf_resize()
84 trace = (struct wpabuf_trace *) nbuf; in wpabuf_resize()
86 os_memset(nbuf + sizeof(struct wpabuf_trace) + in wpabuf_resize()
90 nbuf = os_realloc(buf, sizeof(struct wpabuf) + in wpabuf_resize()
92 if (nbuf == NULL) in wpabuf_resize()
94 buf = (struct wpabuf *) nbuf; in wpabuf_resize()
95 os_memset(nbuf + sizeof(struct wpabuf) + buf->used, 0, in wpabuf_resize()