Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1205)

Issue 8820043: code review 8820043: go.crypto/ssh/test: Fix distracting nil pointer derefer... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by dsymonds
Modified:
11 years ago
Reviewers:
CC:
golang-dev, dfc
Visibility:
Public.

Description

go.crypto/ssh/test: Fix distracting nil pointer dereference in a test. If cgo is disabled (such as it appears to be on a subset of builders), username() panics, and s.cmd is nil; let's not panic while recovering from a different panic.

Patch Set 1 #

Patch Set 2 : diff -r 3fb6a89b4ee1 https://code.google.com/p/go.crypto #

Patch Set 3 : diff -r 3fb6a89b4ee1 https://code.google.com/p/go.crypto #

Patch Set 4 : diff -r 3fb6a89b4ee1 https://code.google.com/p/go.crypto #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M ssh/test/test_unix_test.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3
dsymonds
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go.crypto
11 years ago (2013-04-17 07:34:42 UTC) #1
dfc
LGTM. Thanks for taking care of these. On 17/04/2013, at 17:34, dsymonds@golang.org wrote: > Reviewers: ...
11 years ago (2013-04-17 07:39:45 UTC) #2
dsymonds
11 years ago (2013-04-17 07:40:39 UTC) #3
*** Submitted as
https://code.google.com/p/go/source/detail?r=2a558d1ad724&repo=crypto ***

go.crypto/ssh/test: Fix distracting nil pointer dereference in a test.

If cgo is disabled (such as it appears to be on a subset of builders),
username() panics, and s.cmd is nil; let's not panic while recovering
from a different panic.

R=golang-dev, dave
CC=golang-dev
https://codereview.appspot.com/8820043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b