Bug 942958 - Fix bug where a failure to populate the foundation of a peerreflexive candidate would result in an incorrect error return from nr_ice_peer_peer_rflx_candidate_create. r=ekr

This commit is contained in:
Byron Campen [:bwc] 2013-11-25 13:13:05 -08:00
parent b2b7a0f29e
commit 66569b240b

View File

@ -236,7 +236,7 @@ int nr_ice_peer_peer_rflx_candidate_create(nr_ice_ctx *ctx,char *label, nr_ice_c
ABORT(r);
/* Bogus foundation */
if(!(cand->foundation=r_strdup(cand->addr.as_string)))
ABORT(r);
ABORT(R_NO_MEMORY);
nr_ice_candidate_compute_codeword(cand);