Index: uspace/lib/c/generic/ns.c
===================================================================
--- uspace/lib/c/generic/ns.c	(revision 8d70937197e11be8a09dbc9bd63a588226ddaabb)
+++ uspace/lib/c/generic/ns.c	(revision f1d6866f8c36bca71fbb74e645c7d9c487d3ff60)
@@ -52,7 +52,12 @@
 {
 	async_exch_t *exch = async_exchange_begin(session_ns);
+	if (!exch)
+		return NULL;
 	async_sess_t *sess =
 	    async_connect_me_to(mgmt, exch, service, arg2, arg3);
 	async_exchange_end(exch);
+
+	if (!sess)
+		return NULL;
 	
 	/*
