Skip to content

Commit a467f0c

Browse files
authored
Merge pull request #11967 from ARMmbed/AnttiKauppila-patch-1
Fixed crashing nsapi_dns unittest
2 parents a1cddba + 367bae6 commit a467f0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UNITTESTS/features/netsocket/nsapi_dns/test_nsapi_dns.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class NetworkInterfaceMock: public NetworkInterface {
141141
public:
142142
NetworkStack *get_stack()
143143
{
144-
NetworkStackMock::get_instance();
144+
return &NetworkStackMock::get_instance();
145145
}
146146
MOCK_METHOD0(set_default_parameters, void());
147147
};

0 commit comments

Comments
 (0)