27 lines
699 B
Diff
27 lines
699 B
Diff
From cf3150509ed7eb2407bdf1f5572cd613a30c2b86 Mon Sep 17 00:00:00 2001
|
|
From: Vyacheslav Potoropin <vpotoropin@almalinux.org>
|
|
Date: Thu, 25 Aug 2022 23:08:09 +0200
|
|
Subject: [PATCH] Fix rpm lua rpm_vercmp error message if second argument is
|
|
broken
|
|
|
|
---
|
|
rpmio/rpmlua.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/rpmio/rpmlua.c b/rpmio/rpmlua.c
|
|
index 3f0bdeb3f..615146fab 100644
|
|
--- a/rpmio/rpmlua.c
|
|
+++ b/rpmio/rpmlua.c
|
|
@@ -491,7 +491,7 @@ static int rpm_vercmp(lua_State *L)
|
|
} else {
|
|
if (v1 == NULL)
|
|
luaL_argerror(L, 1, "invalid version ");
|
|
- if (v1 == NULL)
|
|
+ if (v2 == NULL)
|
|
luaL_argerror(L, 2, "invalid version ");
|
|
}
|
|
rpmverFree(v1);
|
|
--
|
|
2.33.0
|
|
|