lkml.org 
[lkml]   [2015]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] unix: properly account for FDs passed over unix sockets
From
Date
On 28.12.2015 15:14, Willy Tarreau wrote:
> @@ -1528,10 +1546,8 @@ static int unix_attach_fds(struct scm_cookie *scm, struct sk_buff *skb)
> if (!UNIXCB(skb).fp)
> return -ENOMEM;
>
> - if (unix_sock_count) {
> - for (i = scm->fp->count - 1; i >= 0; i--)
> - unix_inflight(scm->fp->fp[i]);
> - }
> + for (i = scm->fp->count - 1; i >= 0; i--)
> + unix_inflight(scm->fp->fp[i]);
> return max_level;

You seem to be able to remove the unix_sock_count variable altogether now.

Bye,
Hannes



\
 
 \ /
  Last update: 2015-12-29 16:01    [W:0.072 / U:1.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site