Last weekend I was running the line in a veterans league match when a direct free kick was awarded for a foul on the goal keeper in the penalty area. The goal keeper played the ball to the full back but the ball didn't leave the box so I flagged. Several of the players including ex premier league ones said I got it wrong it saying that rule is only for goal kicks. The referee come over to ask what I flagged for so I said and he also said I got it wrong. Was I right or am I wrong?