- **status**: review --> fixed
- **Comment**:

opensaf-4.5.x:

changeset:   6063:1599441d1976
branch:      opensaf-4.5.x
parent:      6061:2245a8f79500
user:        Zoran Milinkovic <[email protected]>
date:        Thu Oct 23 15:22:06 2014 +0200
summary:     imm: fix return code in admin operation when return params contain 
valid extended name [#1189]

-----

default(4.6):

changeset:   6064:5cf7f2ae706a
tag:         tip
parent:      6062:e752670ddded
user:        Zoran Milinkovic <[email protected]>
date:        Thu Oct 23 15:22:06 2014 +0200
summary:     imm: fix return code in admin operation when return params contain 
valid extended name [#1189]




---

** [tickets:#1189] imm: admin operation returns ERR_NAME_TOO_LONG for a valid 
extended name in return parameters**

**Status:** fixed
**Milestone:** 4.5.1
**Created:** Thu Oct 23, 2014 12:47 PM UTC by Zoran Milinkovic
**Last Updated:** Thu Oct 23, 2014 01:37 PM UTC
**Owner:** Zoran Milinkovic

If return parameters, from successful admin operation call, contain a valid 
extended name, then operation return error is set to SA_AIS_ERR_NAME_TO_LONG.

    if((*returnParams)[i]->paramType == SA_IMM_ATTR_SANAMET
                && osaf_is_extended_name_valid((SaNameT 
*)(*returnParams)[i]->paramBuffer)) {
        if(*operationReturnValue == SA_AIS_OK) {
                *operationReturnValue = SA_AIS_ERR_NAME_TOO_LONG;
        }
        osaf_extended_name_free((SaNameT *)(*returnParams)[i]->paramBuffer);
        osaf_extended_name_clear((SaNameT *)(*returnParams)[i]->paramBuffer);
    }


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to