net_native: a slight addition
authorBrett Gordon <beretta42@gmail.com>
Tue, 6 Jun 2017 20:53:55 +0000 (16:53 -0400)
committerBrett Gordon <beretta42@gmail.com>
Tue, 6 Jun 2017 20:53:55 +0000 (16:53 -0400)
Kernel/dev/net/net_native.c

index 9ed1154..5321170 100644 (file)
@@ -490,6 +490,7 @@ int net_connect(struct socket *s)
  */
 void net_close(struct socket *s)
 {
+       struct sockdata *sd = s->s_priv;
        /* Caution here - the native tcp socket will hang around longer */
        sd->newstate = SS_CLOSED;
        netn_asynchronous_event(s, NEV_STATE|NEVW_STATE);