Let F be a finite extension of Qp, for any prime p, and let L/F be a ramified quadratic extension. We compute the spaces of OL×-equivariant linear forms on the representation indKZGσ/(Φ−λ). The only nonzero cases arise from one-dimensional quotients. Consequently, the restriction of an infinite-dimensional irreducible smooth mod p representation of GL2(F) with a central character to OL× has no character quotient. We apply this vanishing result to show that a finite tensor product of smooth mod p representations of GL2(F) admits no nonzero invariant linear form whenever at least one factor is infinite-dimensional and irreducible with a central character.