Commit 2aabce15 authored by Andrew Price's avatar Andrew Price
Browse files

Assign messages a serial number before routing

parent 5e203b86
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -358,6 +358,7 @@ void process_msg(ipc_connection_t *conn, ipc_message_t *msg)
	/**** end of messages to the server
	 *    all below this point are intended to be retransmitted
	 */
	assign_serial(msg);

	/* load sender */
	struct user from;
@@ -417,7 +418,6 @@ void process_msg(ipc_connection_t *conn, ipc_message_t *msg)
		printf("Unhandled direct-to-user command %s\n", ipc_nametype(msg->head.type));
		msg_attach_to_userid(msg, msg->head.dst);
	}
	assign_serial(msg);
	store_message(msg);
	ipcmsg_destroy(msg);
}