From 0338eb46fb7b5b4b35bae0102c54f3e55dceffac Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Mon, 1 Feb 2010 14:57:44 -0300 Subject: [PATCH] obexd: Allow to plugin's chkput to be called for all cases For some situations it is useful to have chkput called even if we don't implement put. --- obexd/src/obex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/obexd/src/obex.c b/obexd/src/obex.c index aaf437746..68638d323 100644 --- a/obexd/src/obex.c +++ b/obexd/src/obex.c @@ -644,7 +644,7 @@ static gboolean check_put(obex_t *obex, obex_object_t *obj) } } - if (!os->service || !os->service->chkput) + if (!os->service->chkput) goto done; ret = os->service->chkput(obex, obj); @@ -757,7 +757,7 @@ static void obex_event(obex_t *obex, obex_object_t *obj, gint mode, case OBEX_EV_REQCHECK: switch (cmd) { case OBEX_CMD_PUT: - if (os->service && os->service->put) + if (os->service) check_put(obex, obj); break; default: -- 2.47.3