Lines Matching refs:new_conn
400 sdp_conn_t *new_conn;
409 new_conn = calloc(1, sizeof (sdp_conn_t));
410 if (new_conn == NULL) {
419 COMMP_COPY_STR(new_conn->c_nettype, begin, current - begin);
420 if (new_conn->c_nettype == NULL) {
421 sdp_free_connection(new_conn);
431 COMMP_COPY_STR(new_conn->c_addrtype, begin, current - begin);
432 if (new_conn->c_addrtype == NULL) {
433 sdp_free_connection(new_conn);
438 if ((strlen(COMMP_ADDRTYPE_IP4) == strlen(new_conn->c_addrtype)) &&
439 (strncasecmp(new_conn->c_addrtype, COMMP_ADDRTYPE_IP4,
442 } else if ((strlen(COMMP_ADDRTYPE_IP6) == strlen(new_conn->
443 c_addrtype)) && (strncasecmp(new_conn->c_addrtype,
477 &new_conn->c_addrcount) != 0) {
484 &new_conn->c_addrcount) != 0) {
489 &new_conn->c_ttl) != 0) {
492 if (new_conn->c_addrcount == 0)
493 new_conn->c_addrcount = 1;
497 COMMP_COPY_STR(new_conn->c_address, begin, current - begin);
498 if (new_conn->c_address == NULL) {
499 sdp_free_connection(new_conn);
504 *conn = new_conn;
509 tmp->c_next = new_conn;
514 sdp_free_connection(new_conn);