Răsfoiți Sursa

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 ani în urmă
părinte
comite
46fe47823c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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;