[Openais] [PATCH] very minor amf lib return value fix
angus salkeld
angus.salkeld at alliedtelesis.co.nz
Tue Apr 17 22:08:35 PDT 2007
Hi
Here is a one liner to an annoying little problem.
The "error" (usually passed in as OK) was returned instead of the actual failure status (errorResult).
--- /home/anguss/projects/external/ais_clean/lib/amf.c 2007-04-11 11:35:54.000000000 +1200
+++ lib/amf.c 2007-04-18 16:59:43.000000000 +1200
@@ -1033,7 +1041,7 @@
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;
Regards
Angus Salkeld
Allied Telesis Labs Limited
More information about the Openais
mailing list