Changeset 3f21704


Ignore:
Timestamp:
Sep 30, 2013 3:10:49 PM (6 years ago)
Author:
Mei <mei@…>
Branches:
abac0-leak, master
Children:
8164e70
Parents:
72d1168
Message:

1) cleanup alittle X

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • doc/ChangeLog

    rcd0ef61 r3f21704  
    22= 0.1.6 =
    33
    4     2013-09-XX
     4    2013-10-04
     5        * Harden with leak check with Valgrind
    56        * Harden with porting to Cento5/Cento6
    67          (Note, to work around a known Cento6 problem with
     
    910           either compile libabac with -DXMLSEC_NO_SIZE_T or
    1011           use the ABAC rpm for Cento6, details in doc/dependencies)
     12        * Added a new api call: abac_context_load_id_id
    1113        * Added a scaling_tests/haystack example
    1214        * Fixed several bugs related to building on Mac OS X
    13           (thanks to, Victor J. Orlikowski)
     15          (Victor J. Orlikowski)
    1416        * Updated regression tests with longer-lasting credential
    1517          examples
  • libabac/abac_attribute.c

    r4571abc r3f21704  
    490490    if ( attr->keymap ) abac_keyid_map_free(attr->keymap);
    491491
    492 /* MEI???, this can not be free as if it is a char string */
    493492    free(attr->cert.ptr);
    494493
  • libabac/abac_graph.c

    rf6576c4 r3f21704  
    9393/**
    9494 * Add a vertex to the graph. Should only be called by
    95  * abac_graph_add_credential. This returns an existing vertex with the refcount
    96  * bumped, or a new vertex with a refcount of 1.  Either way it gets and
     95 * abac_graph_add_credential. This returns an existing vertex
     96 * or a new vertex with a refcount of 1.  Either way it gets and
    9797 * references the vertex.
    9898 */
     
    120120            vertex->prereqs = abac_list_new();
    121121
    122             // add each prereq to the vertex
     122            // add each prereq to the vertex (dup'ed)
    123123            abac_list_foreach(abac_role_prereqs(role), prereq,
    124124                abac_vertex_t *tail_vertex = _get_vertex(graph, prereq);
    125 /*??? */
    126125                abac_list_add(vertex->prereqs, _dup_vertex(tail_vertex));
    127126            );
     
    135134        HASH_ADD_KEYPTR(hh, graph->vertices, vertex->name, strlen(vertex->name), vertex);
    136135
    137         } else {
    138           return vertex;
    139 /* ??? return _dup_vertex(vertex); */
    140     }
     136    }
    141137
    142138    return vertex;
     
    251247    abac_list_foreach(head_vertex->edges, edge,
    252248        if (edge->vertex == tail_vertex) {
    253 /*
    254             _free_vertex(head_vertex);
    255             _free_vertex(tail_vertex);
    256 */
    257249            return 0;
    258250        }
     
    558550        abac_list_foreach(vertex->edges, incoming,
    559551            if (incoming->credential != NULL) {
    560 /* ??? do we need to duplicate this?? */
    561552                abac_list_add(credentials, abac_credential_dup(incoming->credential));
    562553            }
Note: See TracChangeset for help on using the changeset viewer.