fix pres handling in mi_encode_connected_nr() improved

This commit is contained in:
Norbert Weyrich 2012-08-30 12:29:46 +02:00
parent 4d2e215461
commit 30721084cb
1 changed files with 0 additions and 2 deletions

View File

@ -475,8 +475,6 @@ mi_encode_connected_nr(struct l3_msg *l3m, char *nr, int pres, unsigned int scre
l = 1;
ie[0] = 0x80 | (type << 4) | plan;
}
if (pres > 0) /* restricted or no available, no number should be sent */
nr = NULL;
if (nr && *nr) {
strncpy((char *)&ie[l], nr, 30);
l += strlen(nr);