Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions modules/registrar/reply.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static inline unsigned int calc_buf_len(ucontact_t* c,int build_gruu,
/* sip.instance */
len += SIP_INSTANCE_SIZE
+ 1 /* quote */
+ (c->instance.len - 2)
+ c->instance.len
+ 1 /* quote */
;
}
Expand Down Expand Up @@ -341,8 +341,8 @@ int build_contact(ucontact_t* c,struct sip_msg *_m)
memcpy(p,SIP_INSTANCE,SIP_INSTANCE_SIZE);
p += SIP_INSTANCE_SIZE;
*p++ = '\"';
memcpy(p,c->instance.s+1,c->instance.len-2);
p += c->instance.len-2;
memcpy(p,c->instance.s,c->instance.len);
p += c->instance.len;
*p++ = '\"';
}
}
Expand Down
Loading