Fixing pointer bug in getAllInterfaceIDs function