From 67c1890a42dbc5a7f284b19892d4b0c59c6741eb Mon Sep 17 00:00:00 2001 From: Chris Knight Date: Tue, 23 Jun 2020 07:55:00 -0700 Subject: [PATCH] fix #522 - SocketOpen stub should set sock_id --- src/ut-stubs/osapi-utstub-sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ut-stubs/osapi-utstub-sockets.c b/src/ut-stubs/osapi-utstub-sockets.c index 5c16725a5..033604bfa 100644 --- a/src/ut-stubs/osapi-utstub-sockets.c +++ b/src/ut-stubs/osapi-utstub-sockets.c @@ -37,7 +37,7 @@ int32 OS_SocketOpen(uint32 *sock_id, OS_SocketDomain_t Domain, OS_SocketType_t T if (status == OS_SUCCESS) { - status = UT_AllocStubObjId(UT_OBJTYPE_SOCKET); + *sock_id = UT_AllocStubObjId(UT_OBJTYPE_SOCKET); } return status;