diff options
| author | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-27 12:57:13 -0700 |
|---|---|---|
| committer | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-27 12:57:13 -0700 |
| commit | 5e537ebdfe90bb0319465423c310ce4367281ae5 (patch) | |
| tree | 3da06202bcaf855cbbee7b964b40f45ff4bb3864 | |
| parent | 0311a82c0ab70e29c0a2a96424ca785d9fb2848f (diff) | |
| download | xrdp-proprietary-5e537ebdfe90bb0319465423c310ce4367281ae5.tar.gz xrdp-proprietary-5e537ebdfe90bb0319465423c310ce4367281ae5.zip | |
coverity: explicit null dereferenced
| -rw-r--r-- | sesman/chansrv/sound.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sesman/chansrv/sound.c b/sesman/chansrv/sound.c index c699ffde..687bf883 100644 --- a/sesman/chansrv/sound.c +++ b/sesman/chansrv/sound.c @@ -1139,8 +1139,7 @@ sound_sndsrvr_source_data_in(struct trans *trans) in_uint8(ts, cmd); in_uint16_le(ts, bytes_req); - if (bytes_req != 0) - xstream_new(s, bytes_req + 2); + xstream_new(s, bytes_req + 2); if (cmd == PA_CMD_SEND_DATA) { |
