Fix NSAPI bug in create pdp context

This commit is contained in:
jjako 2004-01-09 15:18:42 +00:00
parent be61ef25a8
commit 98200dfdf9
1 changed files with 8 additions and 8 deletions

View File

@ -1349,15 +1349,15 @@ int gtp_create_pdp_ind(struct gsn_t *gsn, int version,
GTPCAUSE_MAN_IE_MISSING);
}
}
}
/* NSAPI (mandatory) */
if (gtpie_gettv1(ie, GTPIE_NSAPI, 0, &pdp->nsapi)) {
gsn->missing++;
gtp_errpack(LOG_ERR, __FILE__, __LINE__, peer, pack, len,
"Missing mandatory information field");
return gtp_create_pdp_resp(gsn, version, pdp,
GTPCAUSE_MAN_IE_MISSING);
/* NSAPI (mandatory) */
if (gtpie_gettv1(ie, GTPIE_NSAPI, 0, &pdp->nsapi)) {
gsn->missing++;
gtp_errpack(LOG_ERR, __FILE__, __LINE__, peer, pack, len,
"Missing mandatory information field");
return gtp_create_pdp_resp(gsn, version, pdp,
GTPCAUSE_MAN_IE_MISSING);
}
}