Skip to content

Commit a3ce698

Browse files
committed
Improve comments.
1 parent 36d3dad commit a3ce698

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/privsep-root.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ ps_root_readerrorcb(struct psr_ctx *psr_ctx)
115115
{
116116
void *d = realloc(psr_ctx->psr_mdata, psr_error->psr_datalen);
117117

118-
/* If we failed to malloc then psr_mdatalen will be smaller
118+
/* If we failed to realloc then psr_mdatalen will be smaller
119119
* than psr_datalen.
120120
* The following recvmsg will get MSG_TRUNC so the malloc error
121121
* will be reported there but more importantly the
@@ -140,9 +140,6 @@ ps_root_readerrorcb(struct psr_ctx *psr_ctx)
140140
}
141141

142142
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. */
146143
len = recvmsg(fd, &msg, MSG_WAITALL);
147144
if (len == -1)
148145
PSR_ERROR(errno);

0 commit comments

Comments
 (0)