summaryrefslogtreecommitdiff
path: root/usr/src/lib/libnsl/dial/interface.c
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2019-06-19 12:18:51 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2019-06-19 12:18:51 +0000
commit6040a68c1ef27209fe7cd5dfd799ddfa5f11a701 (patch)
tree5ac8fef7a57586e8ebcbfe6013e47a96f9f26ce2 /usr/src/lib/libnsl/dial/interface.c
parent4227bcffd4e1abf8a3987dbe0f649d7cc7ea4940 (diff)
parentae7ff7d6ac239648a2579a0de5a0a1be3d4e10e6 (diff)
downloadillumos-joyent-6040a68c1ef27209fe7cd5dfd799ddfa5f11a701.tar.gz
[illumos-gate merge]
commit ae7ff7d6ac239648a2579a0de5a0a1be3d4e10e6 11118 libhotplug: NULL pointer errors commit dd6458550ab2996163712b25c080615392bf94d2 11117 libzfs_core: NULL pointer errors commit 281eb3a97ad0e298603325ba7c56d0222aaa5ac3 11114 libsecdb: NULL pointer errors commit d5fa36a7366530f78b3c5d1cd4c4a40085383b9f 11110 crle: NULL pointer errors commit e2294b844b9f4bfc375e88fd1260d9a39ffc82e1 11103 link_audit: NULL pointer errors commit 430c2cddc92582fc7155aaf65c78f0919d7081c1 6474 getupeercred causes spurious event port wakeups on FIFOs commit 5f5c35baa7f18214d2cd9ec105270892288f8497 11100 liblddbg: NULL pointer errors commit 344db6f401efe76f7e1d4f4c1a644ae593910219 11092 libnsl: NULL pointer errors commit e86c3f00315e5838c0ec0b14f34b94c292085956 11091 libc: NULL pointer errors commit ad24f9fb30ac1431734347d46a592d22cbfcf3b6 11081 liblddbg: comparison between pointer and integer commit 0362cabb4921eb6283a19fb680876f50907fda08 11115 libdisasm: NULL pointer errors commit 9a34674dce796d46567833216389d6d430925bb2 11182 loader: Distinguish between "no partition" and "choose best partition" with a constant. commit a8412dc108558a7a3635b7ab4f3b1b743bdff9e8 11074 loader: mod_loadkld() error: we previously assumed 'last_file' could be null commit 535ff4fc926c4df67c4665a72c71724810962d4f 11047 zmod: make sure we use zmemcpy and friends commit e207f0de2012ff5024160daa7e6e3cf11d04f2dc 11111 lex: NULL pointer errors
Diffstat (limited to 'usr/src/lib/libnsl/dial/interface.c')
-rw-r--r--usr/src/lib/libnsl/dial/interface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/lib/libnsl/dial/interface.c b/usr/src/lib/libnsl/dial/interface.c
index 09f0a8d55a..2dbd10375e 100644
--- a/usr/src/lib/libnsl/dial/interface.c
+++ b/usr/src/lib/libnsl/dial/interface.c
@@ -186,18 +186,18 @@ twrite(int fd, char *buf, unsigned nbytes)
}
if (info.tsdu <= 0 || nbytes <= info.tsdu)
- return ((ssize_t)t_snd(fd, buf, nbytes, NULL));
+ return ((ssize_t)t_snd(fd, buf, nbytes, 0));
/* if get here, then there is a limit on transmit size */
/* (info.tsdu > 0) and buf exceeds it */
i = ret = 0;
while (nbytes >= info.tsdu) {
- if ((ret = t_snd(fd, &buf[i], info.tsdu, NULL)) != info.tsdu)
+ if ((ret = t_snd(fd, &buf[i], info.tsdu, 0)) != info.tsdu)
return ((ssize_t)(ret >= 0 ? (i + ret) : ret));
i += info.tsdu;
nbytes -= info.tsdu;
}
if (nbytes != 0) {
- if ((ret = t_snd(fd, &buf[i], nbytes, NULL)) != nbytes)
+ if ((ret = t_snd(fd, &buf[i], nbytes, 0)) != nbytes)
return ((ssize_t)(ret >= 0 ? (i + ret) : ret));
i += nbytes;
}