]> git.tdb.fi Git - libs/net.git/commitdiff
Fill in a missing parameter for check_sys_error
authorMikko Rasa <tdb@tdb.fi>
Sun, 9 Oct 2016 15:08:38 +0000 (18:08 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 9 Oct 2016 15:08:38 +0000 (18:08 +0300)
This was supposed to be in b069cfc but somehow didn't make it into the
commit.

source/net/streamserversocket.cpp

index 1823dbd488ccf9585e020a11ef94d8bb2f092606..817145bcff15c024469e64f10cdcfe8516e4e551 100644 (file)
@@ -38,7 +38,7 @@ StreamSocket *StreamServerSocket::accept()
 
        SockAddr::SysAddr sa;
        Private new_p;
-       new_p.handle = check_sys_error(::accept(priv->handle, reinterpret_cast<sockaddr *>(&sa.addr), &sa.size));
+       new_p.handle = check_sys_error(::accept(priv->handle, reinterpret_cast<sockaddr *>(&sa.addr), &sa.size), "accept");
 
        RefPtr<SockAddr> paddr = SockAddr::new_from_sys(sa);
        return new StreamSocket(new_p, *paddr);