Message ID | 20241022072423.4080043-1-quic_amisjain@quicinc.com |
---|---|
State | New |
Headers | show |
Series | [v1] obex: Resolve SRM issue for PTS testcases | expand |
diff --git a/gobex/gobex.c b/gobex/gobex.c index 40d6b8129..4dc3d8b23 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -317,6 +317,9 @@ static void set_srm(GObex *obex, guint8 op, guint8 srm) struct srm_config *config = obex->srm; gboolean enable; + if(srm != G_OBEX_SRM_DISABLE && srm != G_OBEX_SRM_ENABLE && srm != G_OBEX_SRM_INDICATE) + return; //unknown srm value + if (config == NULL) { if (srm == G_OBEX_SRM_DISABLE) return;