Home | History | Annotate | Download | only in src

Lines Matching full:buf

16 	char *buf;
21 buf = malloc(size);
22 if (!buf)
24 memset(buf, 0, size);
26 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size);
30 newbuf = realloc(buf, size);
34 buf = newbuf;
35 memset(buf, 0, size);
36 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size);
40 free(buf);
42 *context = buf;