Index: uspace/lib/libc/generic/async.c
===================================================================
--- uspace/lib/libc/generic/async.c	(revision 26f2af09087bccd53eb0c8a6bb24dfe65cc45156)
+++ uspace/lib/libc/generic/async.c	(revision 01f5e17ed977fd4735bbbdc90c3ba9ad567f5093)
@@ -458,4 +458,7 @@
  * @param in_phone_hash	Identification of the incoming connection.
  * @param callid	Hash of the opening IPC_M_CONNECT_ME_TO call.
+ * 			If callid is zero, the connection was opened by
+ * 			accepting the IPC_M_CONNECT_TO_ME call and this function
+ * 			is called directly by the server.
  * @param call		Call data of the opening call.
  * @param cfibril	Fibril function that should be called upon opening the
@@ -472,5 +475,6 @@
 	conn = malloc(sizeof(*conn));
 	if (!conn) {
-		ipc_answer_fast(callid, ENOMEM, 0, 0);
+		if (callid)
+			ipc_answer_fast(callid, ENOMEM, 0, 0);
 		return NULL;
 	}
@@ -487,5 +491,6 @@
 	if (!conn->wdata.fid) {
 		free(conn);
-		ipc_answer_fast(callid, ENOMEM, 0, 0);
+		if (callid)
+			ipc_answer_fast(callid, ENOMEM, 0, 0);
 		return NULL;
 	}
