File mod_wsgi-3.4-fix-off-by-one.diff of Package apache2-mod_wsgi.openSUSE_13.1_Update
commit a8ac5027f1a887cd41e80616b8a80a442a7e0bc7
Author: Graham Dumpleton <Graham.Dumpleton@gmail.com>
Date: Wed Jun 18 21:16:39 2014 +1000
Fix one off error when checking limit on the number of supplementary groups for the daemon process group.
Index: mod_wsgi-3.4/mod_wsgi.c
===================================================================
--- mod_wsgi-3.4.orig/mod_wsgi.c
+++ mod_wsgi-3.4/mod_wsgi.c
@@ -10040,7 +10040,7 @@ static const char *wsgi_add_daemon_proce
group_name = ap_getword(cmd->pool, &items, ',');
while (group_name && *group_name) {
- if (groups_count > groups_maximum)
+ if (groups_count >= groups_maximum)
return "Too many supplementary groups WSGI daemon process";
groups[groups_count++] = ap_gname2id(group_name);