Browse Source

Fix segfault due to uninitialized var

git-svn-id: svn://svn.lighttpd.net/spawn-fcgi/trunk@25 4a9f3682-ca7b-49a8-9a55-ba4640e46f83
master v1.6.0
Stefan Bühler 13 years ago
parent
commit
776c5294f0
  1. 1
      NEWS
  2. 4
      src/spawn-fcgi.c

1
NEWS

@ -15,3 +15,4 @@ NEWS
* Fix error handling for unix-socket-connect test
* Man page update
* Use header include order from 1.4.x
* Fix segfault due to uninitialized var

4
src/spawn-fcgi.c

@ -276,8 +276,8 @@ static int fcgi_spawn_connection(char *appPath, char **appArgv, char *addr, unsi
static int find_user_group(const char *user, const char *group, uid_t *uid, gid_t *gid, const char **username) {
uid_t my_uid = 0;
gid_t my_gid = 0;
struct passwd *my_pwd;
struct group *my_grp;
struct passwd *my_pwd = NULL;
struct group *my_grp = NULL;
*uid = 0; *gid = 0;
if (username) *username = NULL;

Loading…
Cancel
Save