SIGN IN SIGN UP

Fix syscallbuf for getsockopt

The syscallbuf would crash if `ptr` was NULL, e.g. because the fd
was traced by a file monitor. Fix that by moving the input memcpy
to the correct place and add a simple test.
K
Keno Fischer committed
fecbda35ba9e2d2ebdc2abca4e19db1c07d2e7f5
Parent: ecc4124