[proxy] Handle null HostConfigs gracefully in start

This commit is contained in:
Alfonso Acosta authored and Matthias Radestock committed 2015-10-01 11:40:50 +01:00
1 parent 725f99ea4c
commit c24dc6609d
3 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ func (i *startContainerInterceptor) InterceptRequest(r *http.Request) error {
}
hostConfig := &docker.HostConfig{}
if err := unmarshalRequestBody(r, &hostConfig); err != nil {
if err := unmarshalRequestBody(r, hostConfig); err != nil {
return err
}