Removed dangled global var sd and fixed test that wrongfully used it
Removed dangled global var sd and fixed test that wrongfully used it

Related to coverity CID 10302

A global variable sd (which shouldn't exist, thus was removed) was
used as a consequence of a programming typo. The right variable to
be used is sd6.

Signed-off-by: Richard Maciel <53a1d88320a92db6ddbc22bd99f66cf1c8f80da0@linux.vnet.ibm.com>

Distrotech/trousers,Distrotech/trousers,Distrotech/trousers,emilcondrea/trousers,emilcondrea/trousers,emilcondrea/trousers