]> granicus.if.org Git - linux-pam/commitdiff
Fix missing dereference.
authorTomas Mraz <tmraz@fedoraproject.org>
Tue, 23 Aug 2011 10:42:32 +0000 (12:42 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Tue, 23 Aug 2011 10:42:32 +0000 (12:42 +0200)
ChangeLog
modules/pam_env/pam_env.c

index 07f120f154e97dc55d08093820f941ef309c6861..7563098f4063978e9db70a6c15dc8e44aa706f67 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-08-23  Tomas Mraz  <tm@t8m.info>
+
+       * modules/pam_env/pam_env.c (_pam_parse): Fix missing dereference.
+
 2011-06-22  Thorsten Kukuk  <kukuk@thkukuk.de>
 
        * release version 1.1.4
index 865fbafe10e88f8be1fd93293f2da31106944370..1ec01ca5f47ce80d6c0a031e8d1d53dd66cde73c 100644 (file)
@@ -99,7 +99,7 @@ _pam_parse (const pam_handle_t *pamh, int argc, const char **argv,
        if (!strcmp(*argv,"debug"))
            ctrl |= PAM_DEBUG_ARG;
        else if (!strncmp(*argv,"conffile=",9)) {
-         if (*argv+9 == '\0') {
+         if ((*argv)[9] == '\0') {
            pam_syslog(pamh, LOG_ERR,
                       "conffile= specification missing argument - ignored");
          } else {
@@ -107,7 +107,7 @@ _pam_parse (const pam_handle_t *pamh, int argc, const char **argv,
            D(("new Configuration File: %s", *conffile));
          }
        } else if (!strncmp(*argv,"envfile=",8)) {
-         if (*argv+8 == '\0') {
+         if ((*argv)[8] == '\0') {
            pam_syslog (pamh, LOG_ERR,
                        "envfile= specification missing argument - ignored");
          } else {
@@ -115,7 +115,7 @@ _pam_parse (const pam_handle_t *pamh, int argc, const char **argv,
            D(("new Env File: %s", *envfile));
          }
        } else if (!strncmp(*argv,"user_envfile=",13)) {
-         if (*argv+13 == '\0') {
+         if ((*argv)[13] == '\0') {
            pam_syslog (pamh, LOG_ERR,
                        "user_envfile= specification missing argument - ignored");
          } else {