• Patch: Elm ME+ 2.5 PLalpha54 -> Elm ME+ 2.5 PLalpha60 [7/13] (3/4)

    From Kari Hurtta@21:1/5 to All on Thu Nov 24 20:28:18 2022
    [continued from previous message]

    + "FreeStreamStack0: refcount=%d => %d, continuing",
    + old_refcount,(*ss)->refcount));
    + } else if ((*ss)->nested_FreeStreamStack0) {
    + DPRINT(Debug,10,(&Debug,", not feeing (returning); FreeStreamStack0 already on progress\n",
    + (*ss)->nested_FreeStreamStack0));
    +
    + (*ss) = NULL; /* Refefence count for this pointer is decremented, */
    + /* so this must have be reset */

    ! return;
    }

    DPRINT(Debug,10,(&Debug,", freeing\n"));
    ***************
    *** 1949,1954 ****
    --- 1978,1986 ----

    free(*ss);
    *ss = NULL;
    +
    + DPRINT(Debug,10,(&Debug,
    + "FreeStreamStack0: done, returning\n"));
    }

    void FreeStreamStack(ss)
    ***************
    *** 2100,2107 ****
    int ret = 0;

    DPRINT(Debug,10,(&Debug,
    ! "StreamVerifyName: ss=%p, name_type=%d, required_name=%S\n",
    ! ss,name_type,required_name));

    for (i = 0; i < ss->stack_len; i++) {
    struct string * peer_name = NULL;
    --- 2132,2145 ----
    int ret = 0;

    DPRINT(Debug,10,(&Debug,
    ! "StreamVerifyName: ss=%p, name_type=%d",
    ! ss,name_type));
    ! switch(name_type) {
    ! case SS_peer_cn: DPRINT(Debug,10,(&Debug," SS_peer_cn")); break;
    ! case SS_check_host: DPRINT(Debug,10,(&Debug," SS_check_host")); break; ! }
    ! DPRINT(Debug,10,(&Debug,", required_name=%S\n",
    ! required_name));

    for (i = 0; i < ss->stack_len; i++) {
    struct string * peer_name = NULL;
    Index: elmME+.2.5.alpha60/lib/string.c