There was an error while loading. Please reload this page.
1 parent 36d3dad commit a3ce698Copy full SHA for a3ce698
1 file changed
src/privsep-root.c
@@ -115,7 +115,7 @@ ps_root_readerrorcb(struct psr_ctx *psr_ctx)
115
{
116
void *d = realloc(psr_ctx->psr_mdata, psr_error->psr_datalen);
117
118
- /* If we failed to malloc then psr_mdatalen will be smaller
+ /* If we failed to realloc then psr_mdatalen will be smaller
119
* than psr_datalen.
120
* The following recvmsg will get MSG_TRUNC so the malloc error
121
* will be reported there but more importantly the
@@ -140,9 +140,6 @@ ps_root_readerrorcb(struct psr_ctx *psr_ctx)
140
}
141
142
recv:
143
- /* fd is SOCK_SEQPACKET and we mark the boundary with MSG_EOR
144
- * so this can never stall if the receive buffers are bigger
145
- * than the actual message. */
146
len = recvmsg(fd, &msg, MSG_WAITALL);
147
if (len == -1)
148
PSR_ERROR(errno);
0 commit comments