]> git.saurik.com Git - redis.git/blobdiff - redis.c
Deny EXEC under out of memory
[redis.git] / redis.c
diff --git a/redis.c b/redis.c
index ecde1939ae470b2901c57e415bdb91dcf985cc70..097283da4675600eb743293b00e4e2a401e7640f 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -799,7 +799,7 @@ static struct redisCommand cmdTable[] = {
     {"lastsave",lastsaveCommand,1,REDIS_CMD_INLINE,NULL,0,0,0},
     {"type",typeCommand,2,REDIS_CMD_INLINE,NULL,1,1,1},
     {"multi",multiCommand,1,REDIS_CMD_INLINE,NULL,0,0,0},
-    {"exec",execCommand,1,REDIS_CMD_INLINE,NULL,0,0,0},
+    {"exec",execCommand,1,REDIS_CMD_INLINE|REDIS_CMD_DENYOOM,NULL,0,0,0},
     {"discard",discardCommand,1,REDIS_CMD_INLINE,NULL,0,0,0},
     {"sync",syncCommand,1,REDIS_CMD_INLINE,NULL,0,0,0},
     {"flushdb",flushdbCommand,1,REDIS_CMD_INLINE,NULL,0,0,0},