瀏覽代碼

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
Steven Dake 19 年之前
父節點
當前提交
46fe47823c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/amf.c

+ 1 - 1
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;