From 43e8868875e1d5287979e5b9060a9b16be45cc79 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 22 Feb 2011 16:23:36 +0100 Subject: Added explicit error message in case of memory exhaustion Signed-off-by: Martin Sustrik --- src/ip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ip.cpp') diff --git a/src/ip.cpp b/src/ip.cpp index eb05aec..cab048a 100644 --- a/src/ip.cpp +++ b/src/ip.cpp @@ -50,7 +50,7 @@ static int resolve_nic_name (in_addr* addr_, char const *interface_) // Allocate memory to get interface names. size_t ifr_size = sizeof (struct lifreq) * ifn.lifn_count; char *ifr = (char*) malloc (ifr_size); - errno_assert (ifr); + alloc_assert (ifr); // Retrieve interface names. lifconf ifc; -- cgit v1.2.3