Fix comparision of invalid party name and number structs in comparison functions.

git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@1219 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Richard Mudgett 2009-10-19 22:38:32 +00:00
parent 0c210c19fa
commit 5537dbec1d

4
q931.c
View File

@ -381,6 +381,8 @@ int q931_party_name_cmp(const struct q931_party_name *left, const struct q931_pa
return 0;
}
return -1;
} else if (!right->valid) {
return 1;
}
cmp = left->char_set - right->char_set;
if (cmp) {
@ -413,6 +415,8 @@ int q931_party_number_cmp(const struct q931_party_number *left, const struct q93
return 0;
}
return -1;
} else if (!right->valid) {
return 1;
}
cmp = left->plan - right->plan;
if (cmp) {