From: Andre Noll Date: Sun, 28 Oct 2007 01:52:08 +0000 (+0100) Subject: vss.c recv_afs_msg(): Set cmsg only once. X-Git-Tag: v0.3.0~180 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=4e2dd59e48f952e697e2dc5802c4564bbc0f11cf;p=paraslash.git vss.c recv_afs_msg(): Set cmsg only once. --- diff --git a/vss.c b/vss.c index 03621e00..ee63d103 100644 --- a/vss.c +++ b/vss.c @@ -347,7 +347,6 @@ static int recv_afs_msg(int *fd, uint32_t *code, uint32_t *data) return -E_SHORT_AFS_READ; *code = *(uint32_t*)buf; *data = *(uint32_t*)(buf + 4); - cmsg = CMSG_FIRSTHDR(&msg); for (cmsg = CMSG_FIRSTHDR(&msg); cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) { if (cmsg->cmsg_level != SOL_SOCKET || cmsg->cmsg_type != SCM_RIGHTS)