diff --git a/obexd/src/obex-priv.h b/obexd/src/obex-priv.h
index 41854bc..355a7f8 100644
--- a/obexd/src/obex-priv.h
+++ b/obexd/src/obex-priv.h
uint32_t id;
uint8_t cmd;
uint8_t action_id;
+ char *src;
+ char *dst;
char *name;
char *destname;
char *type;
diff --git a/obexd/src/obex.c b/obexd/src/obex.c
index 7a1d612..8a7a8a3 100644
--- a/obexd/src/obex.c
+++ b/obexd/src/obex.c
if (os->obex)
g_obex_unref(os->obex);
+ g_free(os->src);
+ g_free(os->dst);
+
g_free(os);
}
os->obex = obex;
os->io = g_io_channel_ref(io);
+ obex_getsockname(os, &os->src);
+ obex_getpeername(os, &os->dst);
+
sessions = g_slist_prepend(sessions, os);
return 0;