diff options
| author | mvgr <none@none> | 2005-07-20 15:27:31 -0700 |
|---|---|---|
| committer | mvgr <none@none> | 2005-07-20 15:27:31 -0700 |
| commit | 1b25584432a35965d05ae6fd8a16249b9fca76df (patch) | |
| tree | da22593fcbc60eac8508e4a99bf7b00775a6e675 | |
| parent | 370b8e8014bdd4a1e9f0e46d926e93bffcd157c6 (diff) | |
| download | illumos-joyent-1b25584432a35965d05ae6fd8a16249b9fca76df.tar.gz | |
6297929 libpcp should not check for NULL request message data when request message data length is 0
| -rw-r--r-- | usr/src/lib/libpcp/common/libpcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/libpcp/common/libpcp.c b/usr/src/lib/libpcp/common/libpcp.c index 527462d142..9e7ce7efee 100644 --- a/usr/src/lib/libpcp/common/libpcp.c +++ b/usr/src/lib/libpcp/common/libpcp.c @@ -327,7 +327,7 @@ pcp_send_recv(int channel_fd, pcp_msg_t *req_msg, pcp_msg_t *resp_msg, else glvc_timeout = 0; - if ((datap = req_msg->msg_data) == NULL) + if ((req_msg->msg_len != 0) && ((datap = req_msg->msg_data) == NULL)) return (PCPL_INVALID_ARGS); if (req_msg_hdr == NULL) { |
