News for hackers. Stuff that matters.
Re:Who Says C is Simple? by rapala on Thursday July 18, 2013 @05:13AM (#6062579)
Well, to be fair, the NULL check was in a wrong place. The pointer was already dereferenced before the check.

  struct tun_struct *tun = __tun_get(tfile);
  struct sock *sk = tun->sk;
  unsigned int mask = 0;
  
  if (!tun)
    return POLLERR;

There are no comments on this comment yet.