The operating current of a semiconductor laser optically locked to a high-finesse reference cavity can be controlled using a second-harmonic lock-in technique. We present theoretical calculations for this novel servo scheme. We have demonstrated the practical applicability of our technique in a setup with a 780 nm laser diode.