Fix issues found by coverity in smbstatus json code. Need bug, patch will follow.
This bug was referenced in samba master: 4a702cddaebf7e616706e0c728685567e141b493 a38fad29803f9e2891b2264ac3258394152e8deb
This bug was referenced in samba v4-17-test: b8a5f41b79046368f0a95a09cd10a1c70dfea086 7b4e11f155445d78cdf0090dc7030991934aa36f
This bug was referenced in samba v4-17-stable (Release samba-4.17.0rc2): b8a5f41b79046368f0a95a09cd10a1c70dfea086 7b4e11f155445d78cdf0090dc7030991934aa36f
Fixed with samba-4.17.0rc2