Skip to content

Commit

Permalink
Merge pull request #1 from jsuchome/Code-11-SP3
Browse files Browse the repository at this point in the history
check the return value of error handling function
  • Loading branch information
jsuchome committed Feb 14, 2013
2 parents 4d07e40 + 9864684 commit 2f0f8fa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
2.16.0
2.17.0
6 changes: 5 additions & 1 deletion agent-slp/src/SlpAgent.cc
Expand Up @@ -168,7 +168,11 @@ MySLPSrvURLCallback (SLPHandle hslp,
switch(errcode) {
case SLP_OK:
err = SLPParseSrvURL(srvurl, &parsedurl);
check_error_state(err, "Error parsing SrvURL");

if (!check_error_state(err, "Error parsing SrvURL")->value())
{
break;
}

entry->add(YCPString("srvurl"), YCPString(srvurl) );
entry->add(YCPString("pcSrvType"), YCPString(parsedurl->s_pcSrvType) );
Expand Down
6 changes: 6 additions & 0 deletions package/yast2-slp.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 14 13:03:49 CET 2013 - jsuchome@suse.cz

- check the return value of error handling function
- 2.17.0

-------------------------------------------------------------------
Fri May 16 16:40:22 CEST 2008 - jsrain@suse.cz

Expand Down

0 comments on commit 2f0f8fa

Please sign in to comment.