summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-26 17:01:17 +0200
committerToomas Soome <tsoome@me.com>2019-07-30 21:43:18 +0300
commitfad16a7e4518fa4e5453c3808b1145177946e030 (patch)
tree4dc73877dcfe9af3084e0b2d956096050383740b
parente9f63cd6c655b536e94b801b642dc5ff37254568 (diff)
downloadillumos-joyent-fad16a7e4518fa4e5453c3808b1145177946e030.tar.gz
11428 sendmail: NULL pointer errors
Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/cmd/sendmail/util/mailcompat.c2
-rw-r--r--usr/src/cmd/sendmail/util/vacation.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/sendmail/util/mailcompat.c b/usr/src/cmd/sendmail/util/mailcompat.c
index aefc3dcfe5..ce685337f0 100644
--- a/usr/src/cmd/sendmail/util/mailcompat.c
+++ b/usr/src/cmd/sendmail/util/mailcompat.c
@@ -156,7 +156,7 @@ char **shortp;
/* read the from line */
if (fgets(line, sizeof line, stdin) == NULL ||
- strncmp(line, "From ", 5) != NULL)
+ strncmp(line, "From ", 5) != 0)
{
usrerr("No initial From line");
exit(EX_USAGE);
diff --git a/usr/src/cmd/sendmail/util/vacation.c b/usr/src/cmd/sendmail/util/vacation.c
index 5a0f93756d..95ed7c0797 100644
--- a/usr/src/cmd/sendmail/util/vacation.c
+++ b/usr/src/cmd/sendmail/util/vacation.c
@@ -382,7 +382,7 @@ char **shortp;
/* read the from line */
if (fgets(line, sizeof (line), stdin) == NULL ||
- strncmp(line, "From ", 5) != NULL)
+ strncmp(line, "From ", 5) != 0)
{
usrerr("No initial From line");
exit(EX_PROTOCOL);