aboutsummaryrefslogtreecommitdiffstats
path: root/gtp/gtp.c
diff options
context:
space:
mode:
authorjjako <jjako>2004-01-09 15:18:42 +0000
committerjjako <jjako>2004-01-09 15:18:42 +0000
commit98200dfdf9ef8b570e91920f25b0225cd5d35ea4 (patch)
tree48af377022db16a3f8661d1e461c4ed10933370d /gtp/gtp.c
parentbe61ef25a8c85b686265dae63c20f2c22bdede76 (diff)
Fix NSAPI bug in create pdp context
Diffstat (limited to 'gtp/gtp.c')
-rw-r--r--gtp/gtp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gtp/gtp.c b/gtp/gtp.c
index b5a4e50..899a16a 100644
--- a/gtp/gtp.c
+++ b/gtp/gtp.c
@@ -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);
+ }
}