From: Art Cancro Date: Wed, 19 Dec 2018 04:38:45 +0000 (-0500) Subject: If we have to generate an XMPP resource name, make it a simple integer cs_pid and... X-Git-Tag: v939~329 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=91b0bcd852c106bb1221b6f605603815e21cbdeb If we have to generate an XMPP resource name, make it a simple integer cs_pid and not a giant UUID. --- diff --git a/citadel/modules/xmpp/serv_xmpp.c b/citadel/modules/xmpp/serv_xmpp.c index 2d8ef9d0f..7e42db01a 100644 --- 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 */