diff options
| -rw-r--r-- | meta-networking/recipes-support/ssmtp/ssmtp/0001-ssmtp-Correct-the-null-pointer-assignment-to-char-po.patch | 51 | ||||
| -rw-r--r-- | meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb | 3 |
2 files changed, 53 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/ssmtp/ssmtp/0001-ssmtp-Correct-the-null-pointer-assignment-to-char-po.patch b/meta-networking/recipes-support/ssmtp/ssmtp/0001-ssmtp-Correct-the-null-pointer-assignment-to-char-po.patch new file mode 100644 index 0000000000..c7468fe17f --- /dev/null +++ b/meta-networking/recipes-support/ssmtp/ssmtp/0001-ssmtp-Correct-the-null-pointer-assignment-to-char-po.patch | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | From 58cfb4f86b7fbf19eb643dfba87fdd890b3d4a4a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 24 Aug 2022 19:27:31 -0700 | ||
| 4 | Subject: [PATCH] ssmtp: Correct the null pointer assignment to char pointers | ||
| 5 | |||
| 6 | Fixes | ||
| 7 | error: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'char' [-Wint-conversion] | ||
| 8 | | char *from = (char)NULL; /* Use this as the From: address */ | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | --- | ||
| 13 | ssmtp.c | 20 ++++++++++---------- | ||
| 14 | 1 file changed, 10 insertions(+), 10 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/ssmtp.c b/ssmtp.c | ||
| 17 | index a74ba4e..0a719ac 100644 | ||
| 18 | --- a/ssmtp.c | ||
| 19 | +++ b/ssmtp.c | ||
| 20 | @@ -55,21 +55,21 @@ bool_t use_oldauth = False; /* use old AUTH LOGIN username style */ | ||
| 21 | |||
| 22 | #define ARPADATE_LENGTH 32 /* Current date in RFC format */ | ||
| 23 | char arpadate[ARPADATE_LENGTH]; | ||
| 24 | -char *auth_user = (char)NULL; | ||
| 25 | -char *auth_pass = (char)NULL; | ||
| 26 | -char *auth_method = (char)NULL; /* Mechanism for SMTP authentication */ | ||
| 27 | -char *mail_domain = (char)NULL; | ||
| 28 | -char *from = (char)NULL; /* Use this as the From: address */ | ||
| 29 | +char *auth_user = NULL; | ||
| 30 | +char *auth_pass = NULL; | ||
| 31 | +char *auth_method = NULL; /* Mechanism for SMTP authentication */ | ||
| 32 | +char *mail_domain = NULL; | ||
| 33 | +char *from = NULL; /* Use this as the From: address */ | ||
| 34 | char *hostname; | ||
| 35 | char *mailhost = "mailhub"; | ||
| 36 | -char *minus_f = (char)NULL; | ||
| 37 | -char *minus_F = (char)NULL; | ||
| 38 | +char *minus_f = NULL; | ||
| 39 | +char *minus_F = NULL; | ||
| 40 | char *gecos; | ||
| 41 | -char *prog = (char)NULL; | ||
| 42 | +char *prog = NULL; | ||
| 43 | char *root = NULL; | ||
| 44 | char *tls_cert = "/etc/ssl/certs/ssmtp.pem"; /* Default Certificate */ | ||
| 45 | -char *uad = (char)NULL; | ||
| 46 | -char *config_file = (char)NULL; /* alternate configuration file */ | ||
| 47 | +char *uad = NULL; | ||
| 48 | +char *config_file = NULL; /* alternate configuration file */ | ||
| 49 | |||
| 50 | headers_t headers, *ht; | ||
| 51 | |||
diff --git a/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb b/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb index b0e921d423..05d2bb18ff 100644 --- a/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb +++ b/meta-networking/recipes-support/ssmtp/ssmtp_2.64.bb | |||
| @@ -7,7 +7,8 @@ SRC_URI = "${DEBIAN_MIRROR}/main/s/${BPN}/${BPN}_${PV}.orig.tar.bz2 \ | |||
| 7 | file://ssmtp-bug584162-fix.patch \ | 7 | file://ssmtp-bug584162-fix.patch \ |
| 8 | file://build-ouside_srcdir.patch \ | 8 | file://build-ouside_srcdir.patch \ |
| 9 | file://use-DESTDIR.patch \ | 9 | file://use-DESTDIR.patch \ |
| 10 | " | 10 | file://0001-ssmtp-Correct-the-null-pointer-assignment-to-char-po.patch \ |
| 11 | " | ||
| 11 | 12 | ||
| 12 | SRC_URI[md5sum] = "65b4e0df4934a6cd08c506cabcbe584f" | 13 | SRC_URI[md5sum] = "65b4e0df4934a6cd08c506cabcbe584f" |
| 13 | SRC_URI[sha256sum] = "22c37dc90c871e8e052b2cab0ad219d010fa938608cd66b21c8f3c759046fa36" | 14 | SRC_URI[sha256sum] = "22c37dc90c871e8e052b2cab0ad219d010fa938608cd66b21c8f3c759046fa36" |
