|
@@ -330,7 +330,8 @@ int ct_sip_get_info(struct nf_conn *ct,
|
|
|
|
|
|
while (dptr <= limit) {
|
|
|
if ((strncmp(dptr, hnfo->lname, hnfo->lnlen) != 0) &&
|
|
|
- (strncmp(dptr, hnfo->sname, hnfo->snlen) != 0)) {
|
|
|
+ (hnfo->sname == NULL ||
|
|
|
+ strncmp(dptr, hnfo->sname, hnfo->snlen) != 0)) {
|
|
|
dptr++;
|
|
|
continue;
|
|
|
}
|