diff --git a/Source/Connection.m b/Source/Connection.m index db66e9617..d7205a277 100644 --- a/Source/Connection.m +++ b/Source/Connection.m @@ -630,6 +630,8 @@ static int messages_received_count; last_argnum = type_get_number_of_arguments(type) - 1; retframe = mframe_build_return (argframe, type, out_parameters, decoder); + /* Make sure we processed all arguments, and dismissed the IP. */ + assert (ip == (id)-1); return retframe; } }