Index: etc/c2s.xml.dist.in --- etc/c2s.xml.dist.in.orig 2018-04-22 11:41:35.000000000 +0200 +++ etc/c2s.xml.dist.in 2018-12-04 20:44:51.706417000 +0100 @@ -50,18 +50,16 @@ - + - jabberd/c2s + - local3 + - - 0.0.0.0 + 127.0.0.1 @@ -384,7 +382,7 @@ @pkglibdir@ - sqlite + db Index: etc/router.xml.dist.in --- etc/router.xml.dist.in.orig 2018-12-04 20:43:39.626996000 +0100 +++ etc/router.xml.dist.in 2018-12-04 20:45:27.433065000 +0100 @@ -8,18 +8,16 @@ @localstatedir@/@package@/pid/${id}.pid - + - jabberd/router + - local3 + - - 0.0.0.0 + 127.0.0.1 5347 Index: etc/s2s.xml.dist.in --- etc/s2s.xml.dist.in.orig 2018-12-04 20:43:39.627250000 +0100 +++ etc/s2s.xml.dist.in 2018-12-04 20:45:57.091286000 +0100 @@ -60,18 +60,16 @@ - + - jabberd/s2s + - local3 + - - 0.0.0.0 + 127.0.0.1 5269 - + - jabberd/sm + - local3 + - sqlite + db Index: sm/mod_iq_time.c --- sm/mod_iq_time.c.orig 2018-04-22 11:41:35.000000000 +0200 +++ sm/mod_iq_time.c 2018-12-04 20:43:39.627623000 +0100 @@ -39,6 +39,7 @@ static mod_ret_t _iq_time_pkt_sm(mod_instance_t mi, pkt_t pkt) { time_t t; + time_t tzone; struct tm *tm; char buf[64]; char *c; @@ -78,7 +79,8 @@ datetime_out(t, dt_DATETIME, buf, 64); nad_insert_elem(pkt->nad, 2, NAD_ENS(pkt->nad, 1), "utc", buf); #ifdef HAVE_TZSET - snprintf(buf, 64, "%+03d:%02d", -((int)timezone)/(60*60), -((int)timezone)%(60*60)); + tzone = (time_t)((long)mktime(gmtime(&t)) - (long)t); + snprintf(buf, 64, "%+03d:%02d", (int) -tzone/(60*60), (int) -tzone%(60*60)); #else snprintf(buf, 64, "%+03d:%02d", (int) tm->tm_gmtoff/(60*60), (int) tm->tm_gmtoff%(60*60)); #endif Index: sm/mod_roster.c --- sm/mod_roster.c.orig 2018-04-22 11:41:35.000000000 +0200 +++ sm/mod_roster.c 2018-12-04 20:43:39.627813000 +0100 @@ -717,6 +717,9 @@ if(user->sessions == NULL) return mod_PASS; + /* We have to free old packet - Lemming's memory leak fix */ + pkt_free(pkt); + /* build a new packet to push out to everyone */ pkt = pkt_create(user->sm, "iq", "set", NULL, NULL); pkt_id_new(pkt); Index: util/util.h --- util/util.h.orig 2018-04-22 11:41:35.000000000 +0200 +++ util/util.h 2018-12-04 20:43:39.627960000 +0100 @@ -30,6 +30,8 @@ #include #include #include +#include +#include #include