diff options
| author | pk193450 <none@none> | 2007-02-01 10:32:34 -0800 |
|---|---|---|
| committer | pk193450 <none@none> | 2007-02-01 10:32:34 -0800 |
| commit | ddbddff2ed276905b69797ff212e844f903598d5 (patch) | |
| tree | 4c92a1574cbf2dbfe32d60e3c116f5293c7220e3 /usr/src/uts/common/io/cryptmod.c | |
| parent | a9f097b092ad90eed0beaf0312c98cb55054513c (diff) | |
| download | illumos-joyent-ddbddff2ed276905b69797ff212e844f903598d5.tar.gz | |
6476400 kerberized r-commands are not compatible with earlier versions for large buffers (fix lint)
Diffstat (limited to 'usr/src/uts/common/io/cryptmod.c')
| -rw-r--r-- | usr/src/uts/common/io/cryptmod.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/src/uts/common/io/cryptmod.c b/usr/src/uts/common/io/cryptmod.c index 679f1f3843..42c4c8b3f9 100644 --- a/usr/src/uts/common/io/cryptmod.c +++ b/usr/src/uts/common/io/cryptmod.c @@ -3101,7 +3101,6 @@ encrypt_msgb(queue_t *q, struct tmodinfo *tmi, mblk_t *mp) { size_t plainlen, outlen; mblk_t *newmp = NULL; - mblk_t *headblk = NULL; /* If not encrypting, do nothing */ if (tmi->enc_data.method == CRYPT_METHOD_NONE) { @@ -3145,7 +3144,7 @@ encrypt_msgb(queue_t *q, struct tmodinfo *tmi, mblk_t *mp) } newmp = NULL; /* If there is data left (< MSGBUF_SIZE), encrypt it. */ - if ((plainlen = MBLKL(mp))) + if ((plainlen = MBLKL(mp)) > 0) newmp = encrypt_block(q, tmi, mp, plainlen); return (newmp); |
