osaf/libs/agents/saf/ntfa/ntfa_api.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Fix the NTF API to check if SaNameT length  >= 256 instead
of > 256. length must not have a value > 255.
Check implemented for notifyingObject and notificationObject

diff --git a/osaf/libs/agents/saf/ntfa/ntfa_api.c 
b/osaf/libs/agents/saf/ntfa/ntfa_api.c
--- a/osaf/libs/agents/saf/ntfa/ntfa_api.c
+++ b/osaf/libs/agents/saf/ntfa/ntfa_api.c
@@ -305,7 +305,7 @@ static SaAisErrorT checkHeader(SaNtfNoti
 {
        int i =0;
 
-       if (nh->notificationObject->length > SA_MAX_NAME_LENGTH || 
nh->notifyingObject->length > SA_MAX_NAME_LENGTH) {
+       if (nh->notificationObject->length >= SA_MAX_NAME_LENGTH || 
nh->notifyingObject->length >= SA_MAX_NAME_LENGTH) {
                TRACE_1("SaNameT length too big");
                return SA_AIS_ERR_INVALID_PARAM;
        }

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to