# HG changeset patch # User Georg Lukas # Date 1551903947 -3600 # Node ID 1f2381492c9fa7e06ccc994e773e6cb786e7b676 # Parent 4ce945490a24cefab9552360a6efa35f5b132d14 mod_smacks: no crash on without @h, fix #1317 diff -r 4ce945490a24 -r 1f2381492c9f mod_smacks/mod_smacks.lua --- a/mod_smacks/mod_smacks.lua Wed Mar 06 17:46:57 2019 +0100 +++ b/mod_smacks/mod_smacks.lua Wed Mar 06 21:25:47 2019 +0100 @@ -344,6 +344,7 @@ local h = tonumber(stanza.attr.h); if not h then origin:close{ condition = "invalid-xml"; text = "Missing or invalid 'h' attribute"; }; + return; end local handled_stanza_count = h-origin.last_acknowledged_stanza; local queue = origin.outgoing_stanza_queue;