common: properly default to the current hlq version when unpacking

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
1 files changed, 3 insertions(+), 0 deletions(-)

M common/qso-pack.c
M common/qso-pack.c +3 -0
@@ 849,6 849,9 @@ int qso_set_hlq_item(struct qso *qso, in
 	char key[32];
 	int ret;
 
+	if (ver == HLQ_VERSION_USE_DEFAULT)
+		ver = HLQ_VERSION_CUR;
+
 	/* extract & nul-terminate a key for ease of use */
 	keylen = key_end - key_start;
 	if (keylen >= sizeof(key)) {