PHOENIX -- One thing you can count on from Daniel Hudson is the D-backs right-hander is not going to get rattled.
An early home run and a seventh-inning jam could not fluster Hudson as he once again turned in an outstanding outing to help the D-backs avoid a sweep and beat the Giants, 3-1, on Wednesday night in front of 19,972 at Chase Field.
"He went out there and competed that's the good thing about him," D-backs catcher Miguel Montero said.
Hudson raised his record to 4-1 since coming over in a deal that sent Edwin Jackson to the White Sox just prior to the July 31 Trade Deadline. The right-hander allowed one run on five hits and two walks while striking out three in seven innings.
"Daniel pitched a very good game tonight," D-backs interim manager Kirk Gibson said. "He was very efficient, held them to one run."
That one run came two batters into the game when Freddy Sanchez hit an 0-2 pitch from Hudson into the left-field seats.
The early deficit did not seem to bother Hudson, who adjusted to the fact that he did not have all three of his pitches working at that point.
"He located his fastball well," Montero said. "At the beginning of the game, he didn't have his slider and we just tried to go through it with a fastball-change mix. Kind of in the fifth inning, he figured out his slider a little bit."
Working in Hudson's favor was that his changeup was particularly good.
"I think it was a little slower than normal and had more depth," Hudson said. "And I think I was able to get some guys out in front of it and maybe get in on their hands right after that. It kept them off balance enough to get inside."
The D-backs showed patience at the plate against Giants starter Barry Zito in the second when they drew a pair of walks to start the inning. Mark Reynolds then hit into a double play, but Miguel Montero followed with a double to left-center that drove home Chris Young to tie the game at 1.
"I tried to just get a good pitch to hit," Montero said. "Against lefties, I don't try to do too much and use the other side of the field."
"The frustrating part was having a walk score on the Montero hit," Zito said.
One inning later, the D-backs grabbed the lead when Stephen Drew tripled to lead off the frame and one out after that, Kelly Johnson drove him home with a single to right to put Arizona up, 2-1.
The D-backs added an insurance run in the seventh when Montero drew a leadoff walk off Jeremy Affeldt, moved to third on a sacrifice bunt and came home on Drew's single to center.
"The key to the game is we scored on two walks," Gibson said. "You take what they give you."
Ahead, 2-1, Hudson ran into a bit of trouble in the seventh when the Giants got a runner to third with two outs. Cody Ross drew a walk from Hudson, but pinch-hitter Travis Ishikawa grounded out to end the threat.
"They had some good at-bats in that last inning and I'm just trying to be kind of careful with a guy on third base and Ross up," Hudson said. "I've had some success with Ishikawa in the past, so 3-1, I threw him a changeup out of the zone and then went right after Ishikawa."
The win snapped the D-backs' four-game losing streak and gave them a 5-4 record on the just-completed homestand that also featured games against the first-place Padres and the Astros.
"We've been playing good," Drew said. "[The Giants are] playing good over there. Just a good series. We didn't win it, but we played well and that's all you can ask."
Steve Gilbert is a reporter for MLB.com. This story was not subject to the approval of Major League Baseball or its clubs.