Message ID | 20241023071448.1017724-1-quic_amisjain@quicinc.com |
---|---|
State | New |
Headers | show |
Series | [v3] obex: Resolve SRM issue for PTS testcases | expand |
diff --git a/gobex/gobex.c b/gobex/gobex.c index 40d6b8129..07e46627a 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -317,6 +317,15 @@ static void set_srm(GObex *obex, guint8 op, guint8 srm) struct srm_config *config = obex->srm; gboolean enable; + switch (srm) { + case G_OBEX_SRM_ENABLE: + case G_OBEX_SRM_DISABLE: + case G_OBEX_SRM_INDICATE: + break; + default: + return; + } + if (config == NULL) { if (srm == G_OBEX_SRM_DISABLE) return;