> > +static inline void sock_copy(struct sock *nsk, const 
> struct sock *osk)
> > +{
> > +   void *sptr = nsk->sk_security;
> > +
> > +   memcpy(nsk, osk, osk->sk_prot->obj_size);
> > +   nsk->sk_security = sptr;
> 
> I don't get it.  Why do you put sk_security away and then set it back.
> Doesn't memcpy already do this for you?

Nope. It would actually overwrite the pointer, so we put it away before
memcpy
and set it back after memcpy.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to