projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2bcd29b
)
If we have to generate an XMPP resource name, make it a simple integer cs_pid and...
author
Art Cancro
<ajc@citadel.org>
Wed, 19 Dec 2018 04:38:45 +0000
(23:38 -0500)
committer
Art Cancro
<ajc@citadel.org>
Wed, 19 Dec 2018 04:38:45 +0000
(23:38 -0500)
citadel/modules/xmpp/serv_xmpp.c
patch
|
blob
|
history
diff --git
a/citadel/modules/xmpp/serv_xmpp.c
b/citadel/modules/xmpp/serv_xmpp.c
index 2d8ef9d0fa42bbc95d0b780a343809953a4770b9..7e42db01a3af37a1b0855338adf22f3663c259f0 100644
(file)
--- a/
citadel/modules/xmpp/serv_xmpp.c
+++ b/
citadel/modules/xmpp/serv_xmpp.c
@@
-409,7
+409,7
@@
void xmpp_xml_end(void *data, const char *supplied_el) {
/* If the client has not specified a client resource, generate one */
if (IsEmptyStr(XMPP->iq_client_resource)) {
-
generate_uuid(XMPP->iq_client_resource
);
+
snprintf(XMPP->iq_client_resource, sizeof XMPP->iq_client_resource, "%d", CC->cs_pid
);
}
/* Generate the "full JID" of the client resource */