Skip to content

Commit

Permalink
Merge pull request #12446 from knobunc/bug/bz1412087-securitycontext-…
Browse files Browse the repository at this point in the history
…nil-dereference-panic

Merged by openshift-bot
  • Loading branch information
OpenShift Bot committed Jan 12, 2017
2 parents fc73b80 + 6255e65 commit 38831af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sdn/plugin/pod_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func getBandwidth(pod *kapi.Pod) (string, string, error) {
func wantsMacvlan(pod *kapi.Pod) (bool, error) {
privileged := false
for _, container := range pod.Spec.Containers {
if container.SecurityContext.Privileged != nil && *container.SecurityContext.Privileged {
if container.SecurityContext != nil && container.SecurityContext.Privileged != nil && *container.SecurityContext.Privileged {
privileged = true
break
}
Expand Down

0 comments on commit 38831af

Please sign in to comment.