From 46fe47823c932b9d77bfe9f6e81e82f1a95e9245 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Sat, 21 Apr 2007 00:02:29 +0000 Subject: [PATCH] Patch from Angus to fix return code of saAmfResponse if the handle was invalid. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1360 fd59a12c-fef9-0310-b244-a6a79926bd2f --- lib/amf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/amf.c b/lib/amf.c index ad003e73..dbb61722 100644 --- a/lib/amf.c +++ b/lib/amf.c @@ -1033,7 +1033,7 @@ saAmfResponse ( errorResult = saHandleInstanceGet (&amfHandleDatabase, amfHandle, (void *)&amfInstance); if (errorResult != SA_AIS_OK) { - return (error); + return (errorResult); } req_lib_amf_response.header.id = MESSAGE_REQ_AMF_RESPONSE;