[gnome-keyring] #105 fix looping off the end of the operations array
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] #105 fix looping off the end of the operations array
- Date: Sat, 21 May 2022 10:42:25 +0000 (UTC)
commit a17707681f35b73a5ecd8ca60a5ff950c790df39
Author: Jos Dehaes <jos dehaes gmail com>
Date: Mon Mar 14 13:42:45 2022 +0100
#105 fix looping off the end of the operations array
daemon/ssh-agent/gkd-ssh-agent-service.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/daemon/ssh-agent/gkd-ssh-agent-service.c b/daemon/ssh-agent/gkd-ssh-agent-service.c
index a9f74ab3..c3e4bb33 100644
--- a/daemon/ssh-agent/gkd-ssh-agent-service.c
+++ b/daemon/ssh-agent/gkd-ssh-agent-service.c
@@ -184,7 +184,7 @@ handle_request (GkdSshAgentService *self,
/* Decode the operation; on failure, just pass through */
if (egg_buffer_get_byte (req, 4, NULL, &op) &&
- op <= GKD_SSH_OP_MAX && operations[op] != NULL)
+ op < GKD_SSH_OP_MAX && operations[op] != NULL)
func = operations[op];
else
func = relay_request;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]