Skip to content
Snippets Groups Projects
  • Guy Zana's avatar
    a525291c
    net: fix. accept() didn't return sockaddr to the user · a525291c
    Guy Zana authored
    kern_accept() used to return a newly allocated sockaddr struct instead
    of modifying the given one. this is a porting issue, since we're not
    copying the struct to the user when kern_accept finish.
    
    change the calling convention of kern_accept so it'll modify the given
    sockaddr struct instead of returning a newly allocated one.
    a525291c
    History
    net: fix. accept() didn't return sockaddr to the user
    Guy Zana authored
    kern_accept() used to return a newly allocated sockaddr struct instead
    of modifying the given one. this is a porting issue, since we're not
    copying the struct to the user when kern_accept finish.
    
    change the calling convention of kern_accept so it'll modify the given
    sockaddr struct instead of returning a newly allocated one.