Fix brown-paper-bag bugs in carbonite::getrepairs that crash maintd.
Fix brown-paper-bag bugs in carbonite::getrepairs that crash maintd.

sit/dht,sit/dht,sit/dht,weidezhang/dht,sit/dht,weidezhang/dht,weidezhang/dht,weidezhang/dht,sit/dht,weidezhang/dht