Revision 4a0208c3 som/ChunkTrading/chunk_signaling.c

View differences:

som/ChunkTrading/chunk_signaling.c
96 96
 * @param[out] sig_type Type of signaling message.
97 97
 * @return 1 on success, <0 on error.
98 98
 */
99
int parseSignaling(uint8_t *buff, int buff_len, const struct nodeID *owner_id, struct chunkID_set **cset,
99
int parseSignaling(uint8_t *buff, int buff_len, struct nodeID **owner_id, struct chunkID_set **cset,
100 100
        int *max_deliver, int *trans_id, int *sig_type) {
101 101
    struct sig_nal *signal;
102 102
    int ret, third_peer, meta_len;
......
131 131
        }
132 132
        *max_deliver = signal->max_deliver;
133 133
        *trans_id = signal->trans_id;
134
        owner_id = (signal->third_peer ? nodeid_undump(&(signal->third_peer), &third_peer) : NULL);
134
        *owner_id = (signal->third_peer ? nodeid_undump(&(signal->third_peer), &third_peer) : NULL);
135 135
        free(meta);
136 136
    }
137 137
    ret = (!*cset || !meta_len) ? -1 : 1;

Also available in: Unified diff