Diff between 7480d4761fd3ac2f6f05fd8fe17ce2ae2b16d075 and 0338eb46fb7b5b4b35bae0102c54f3e55dceffac
Changed Files
| File | Additions | Deletions | Status |
| obexd/src/obex.c | +2 | -2 | modified |
Full Patch
diff --git a/obexd/src/obex.c b/obexd/src/obex.c
index aaf4377..68638d3 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: